This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Namespace(alwaysupdate=1, apitoken=None, command='import', days=10, dryrun=None, forcecopy=0, forcedownload=0, info=None, input=None, installer='/Users/fleon/.sdkbox/bin/sdkbox.pyc', jsonapi=0, key=None, legacy=None, local=0, manifest='manifest.json', mkey=None, mvalue=None, nohelp=1, nopatching=0, nopatchingcpp=0, noupdate=0, output=None, patcherrors=0, platform=None, plugin=u'/Users/fleon/.sdkbox/plugins/sdkbox-sdkboxplay_v2.7.0.0/', project='/Users/fleon/git/curse-of-the-cards/game/build/jsb-link/', projectpath=['proj.ios_mac/curse-of-the-cards.xcodeproj', 'proj.android-studio'], remote=1, runin='gui-creator', server='download.sdkbox.com/installer/v1/', silenttime=None, symbol=None, verbose=0) | |
get remote manifest from http://download.sdkbox.com/installer/v1/manifest.json | |
{ | |
"packages": { | |
"SDKBOX": { | |
"versions": { | |
"1.4.0.0": { | |
"bundle": "sdkbox_installer.zip", | |
"sha1": "ef75f1afa4b63c5affa911cda34f1e5f7eb46b45" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
computeCoinGainForWinning(against: User, cleanWin = false) { | |
const L = against.experience.level | |
const l = this.experience.level | |
const c = cleanWin ? 1.5 : 1 | |
const m = this.gameUnlocked ? 2 : 1 | |
return Math.floor( | |
c * m * Math.log10(2 * L) / Math.log10(1.01) * ( | |
1 - (L - l < 0 ? Math.min(1.9, (l - L + 1) ** 0.18) - 1 : 0) + | |
(L - l > 0 ? L - l : 0) ** 2 / L ** 1.25 | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Timeout, { timeout } from 'utils/Timeout' | |
export default class GarbageCollector { | |
private static gcTimeout: Timeout | |
static cancel() { | |
if (this.gcTimeout) { | |
this.gcTimeout.cancel() | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function noop() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var utils = { | |
forEach: function (obj, fn, ctx) { | |
if (obj === null || typeof obj === 'undefined') { | |
return | |
} | |
if (obj instanceof Array) { | |
for (var i = 0; i < obj.length; i++) { | |
if (fn.call(ctx, obj[i], i, obj)) { | |
break |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Augmented Senses | |
————————— | |
2026 shall be the year to enable us to do more with our senses | |
AR / VR becomes mainstream | |
Augmented Sight Contact Lenses: a wearable tech, allowing you to overlay your eyes with additional information configurable by the touch of your favourite device | |
Augmented Hearing: earplugs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Creates a new DOMFootprint for the given HTML node. | |
* @param {Node} element The HTML node to create a footprint for. | |
*/ | |
function DOMFootprint(element) { | |
this.element = element; | |
this.capture(); | |
} | |
DOMFootprint.prototype = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//javascript: | |
function observeFn(obj, fnName, before, after) { | |
var originalFn = obj[fnName], | |
noop = function () {}; | |
before = typeof before === 'function' ? before : noop; | |
after = typeof after === 'function' ? after : noop; | |
obj[fnName] = function () { | |
var args = [].slice.call(arguments); | |
before({ | |
args: args, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// javascript: | |
var script = document.createElement('script'); | |
var protocol = window.location.protocol; | |
if (protocol.indexOf('file') >= 0) { | |
protocol = 'http:'; | |
} | |
script.src = protocol + '//code.jquery.com/jquery-1.11.2.min.js'; | |
document.getElementsByTagName('head')[0].appendChild(script); |
NewerOlder