An unconnected list of things it'd be nice to have in the platform. I may add to this over time
Is this ever going to happen? SVG 1.1 is really showing its age, and it feels like something browser vendors have long since stopped caring about
// Steps to use: | |
// 1. Go to itunesConnect > Users & Roles | |
// 2. Select "Testers" under the "Sandbox" header on the left | |
// 2. Open the console on your browser (eg. CMD-OPT-J) | |
// 3. Paste the code below (modified to your liking) into the console and hit enter | |
// 4. enter `createUser('desiredEmailAlias')` into the console and watch the user get created automatically | |
// | |
// NOTE: To create several users rapidly: in the console hit the up arrow, change the alias, and hit enter again. Repeat. | |
// Edit the user here to your liking |
// | |
// Author: Chase Wasden | |
// Website: https://gist.github.com/ccwasden | |
// Licensed under MIT license https://opensource.org/licenses/MIT | |
// | |
import Foundation | |
import Combine | |
// Threading |
echo "<button on:click='set({ count: count + 1 })'>{count}</button>" > App.html | |
npx svelte compile App.html --format iife --name App > App.js | |
echo "<div id=target></div> | |
<script src=App.js></script> | |
<script> | |
new App({ | |
target, | |
data: { count: 0 } |
So far, most of us have been writing Svelte components into .html
files, with a few exceptions (Parcel users, for example, have additional constraints to work with). We're currently discussing whether this should change.
Once you've read the pros and cons, please vote!
Pros:
You have an array. Its sort order doesn't matter. You want to remove an item from this array.
The obvious thing to do would be to use splice
:
function remove(array, item) {
const index = array.indexOf(item);
array.splice(index, 1);
}
// re https://stackoverflow.com/questions/62621666/how-can-i-reliably-merge-objects-from-these-2-arrays-and-loop-the-resulting-arra/62623714?noredirect=1#comment110766294_62623714 | |
function with_nested_for_each([a, b]) { | |
const result = []; | |
a.forEach(p => { | |
b.forEach(q => { | |
if (p.code === q.code) { | |
result.push(Object.assign({}, p, q)); | |
} |
var hw = (function () { | |
'use strict'; | |
function noop() {} | |
function assign(tar, src) { | |
for (var k in src) tar[k] = src[k]; | |
return tar; | |
} |
using UnityEngine; | |
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Threading; | |
class BitmapEncoder | |
{ | |
public static void WriteBitmap(Stream stream, int width, int height, byte[] imageData) |
-- Turkce isimler sozlugu twitter : http://twitter.com/baskindev | |
CREATE TABLE `isimler` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`isimler` varchar(255) DEFAULT NULL, | |
`cinsiyet` varchar(255) DEFAULT NULL COMMENT 'erkek : E , kadın : K , uniseks : U', | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB; | |
-- ---------------------------- |