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
var animationName = 'Elric_Jump_Down'; | |
import com.adobe.images.PNGEncoder; | |
import com.adobe.serialization.json.JSON; | |
import com.hurlant.util.Base64; | |
import org.aszip.zip.ASZip; | |
import org.aszip.compression.CompressionMethod; | |
import org.aszip.saving.Method; | |
var console = {log: trace}; |
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
function submitData(url, method, data) { | |
var $form = $('<form></form>') | |
.attr('action', url) | |
.attr('method', method) | |
.appendTo('body'); | |
for (var i in data) { | |
if (!data.hasOwnProperty(i)) continue; | |
$('<input type="hidden"/>') | |
.attr('name', i) |
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 com.adobe.images.PNGEncoder; | |
import com.adobe.serialization.json.JSON; | |
import com.hurlant.util.Base64; | |
var frames = {}; | |
var children = []; | |
function enterFrameHandler (e:Event):void { | |
if (frames[currentFrame]) { | |
System.setClipboard(JSON.encode(children)); |
NewerOlder