Moved to repo: /quenhus/uBlock-Origin-dev-filter
In order to keep filters up to date, please use this repo.
In order to keep filters up to date, please use this repo.
I heard some points of criticism to how React deals with reactivity and it's focus on "purity". It's interesting because there are really two approaches evolving. There's a mutable + change tracking approach and there's an immutability + referential equality testing approach. It's difficult to mix and match them when you build new features on top. So that's why React has been pushing a bit harder on immutability lately to be able to build on top of it. Both have various tradeoffs but others are doing good research in other areas, so we've decided to focus on this direction and see where it leads us.
I did want to address a few points that I didn't see get enough consideration around the tradeoffs. So here's a small brain dump.
"Compiled output results in smaller apps" - E.g. Svelte apps start smaller but the compiler output is 3-4x larger per component than the equivalent VDOM approach. This is mostly due to the code that is usually shared in the VDOM "VM" needs to be inlined into each component. The tr
'use strict'; | |
const crypto = require('crypto'); | |
const ENCRYPTION_KEY = process.env.ENCRYPTION_KEY; // Must be 256 bits (32 characters) | |
const IV_LENGTH = 16; // For AES, this is always 16 | |
function encrypt(text) { | |
let iv = crypto.randomBytes(IV_LENGTH); | |
let cipher = crypto.createCipheriv('aes-256-cbc', Buffer.from(ENCRYPTION_KEY), iv); |
// Add a new function to player sandbox space | |
// Some Super Secret Secret (32 character hex string) | |
const secret = Buffer.from('DEADBEEF000000000000000000000000', 'hex') | |
const jwt = require('./lib/jwt') | |
module.exports = function (config) { | |
if (config.engine) { | |
config.engine.onPlayerSandbox = function (sandbox) { | |
sandbox.getAPIToken = function () { | |
let key = generateToken(sandbox.module.user) |
/** | |
* Returns a promise that has a cancelled method that will cause the callbacks not to fire when it resolves or rejects | |
* @param promise to wrap | |
* @returns new promise that will only resolve or reject if cancel is not called | |
*/ | |
export default function cancellable(promise) { | |
var cancelled = false; | |
const toReturn = new Promise((resolve, reject) => { | |
promise.then(() => { |
<?php | |
/** | |
* This code will benchmark your server to determine how high of a cost you can | |
* afford. You want to set the highest cost that you can without slowing down | |
* you server too much. 8-10 is a good baseline, and more is good if your servers | |
* are fast enough. The code below aims for ≤ 50 milliseconds stretching time, | |
* which is a good baseline for systems handling interactive logins. | |
*/ | |
function_exists('password_hash') or die("Please use PHP 5.5.0 or higher."); |
In this gist I would like to describe an idea for GraphQL subscriptions. It was inspired by conversations about subscriptions in the GraphQL slack channel and different GH issues, like #89 and #411.
At the moment GraphQL allows 2 types of queries:
query
mutation
Reference implementation also adds the third type: subscription
. It does not have any semantics yet, so here I would like to propose one possible semantics interpretation and the reasoning behind it.
Add Graal JIT Compilation to Your JVM Language in 5 Steps, A Tutorial http://stefan-marr.de/2015/11/add-graal-jit-compilation-to-your-jvm-language-in-5-easy-steps-step-1/
The SimpleLanguage, an example of using Truffle with great JavaDocs. It is the officle getting-started project: https://github.com/graalvm/simplelanguage
Truffle Tutorial, Christan Wimmer, PLDI 2016, 3h recording https://youtu.be/FJY96_6Y3a4 Slides
import json | |
from base64 import b64decode | |
from collections import OrderedDict | |
from cStringIO import StringIO | |
from gzip import GzipFile | |
import requests | |
## Python before 2.7.10 or so has somewhat broken SSL support that throws a warning; suppress it |
declare var Game: screeps.IGame; | |
declare module screeps { | |
export interface IGame { | |
cpuLimit: number; | |
creeps: { [screepName: string]: ICreep }; | |
flags: { [flagName: string]: IFlag }; | |
map: IMap; | |
rooms: { [roomName: string]: IRoom }; |