I hereby claim:
- I am gyoshev on github.
- I am gyoshev (https://keybase.io/gyoshev) on keybase.
- I have a public key whose fingerprint is 87DD C2C5 9AC3 8703 5C07 BE2B CB26 A70F 5E59 5A4F
To claim this, I am signing this object:
import { ContainerInject, Whitelist, WhitelistProvider } from 'leanplum-lib-common'; | |
class CampaignDetails extends Vue { | |
@ContainerInject(WhitelistProvider) | |
readonly whitelists: WhitelistProvider; | |
render(): VNode { | |
if (this.whitelists.isWhitelistedFor(Whitelist.SINGLE_MESSAGE_CAMPAIGNS)) { | |
return this.renderSingleMessage(); | |
} |
// register a microfrontend module | |
shell.registerModule((router: DynamicRouter, container: InversifyContainer) => { | |
// dependencies | |
container.bind(IntegrationsApi).to(AxiosIntegrationsApi) | |
container.bind(IntegrationsMetrics).toSelf(); | |
// routes and views | |
router.addChildRoutes([ | |
{ path: 'partner-integrations', component: IntegrationsDashboard }, | |
{ path: 'partner-integrations/mparticle', component: MParticleIntegrationPage }, |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/node | |
var canvg = require("canvg"); | |
var Canvas = require("canvas"); | |
fs = require('fs') | |
var svg_input; | |
var args = process.argv.slice(2); |
# default base is 14px (= 1em) | |
# outputs range from 1px to 30px | |
print('\n'.join([ | |
str(x) + "px = " + str(round(x/14.0, 4)) + "em" | |
for x in range(1,30) | |
])) |
var rewindPoller = setInterval(function() { | |
var song = Grooveshark.getCurrentSongStatus().song; | |
if (song.position > song.calculatedDuration - 2000) { | |
Grooveshark.seekToPosition(0) | |
} | |
}, 1000); | |
// to stop the looping | |
clearInterval(rewindPoller); |
var a = [ 9, 10, 2, 1, 5, 4, 3, 6, 8, 7, 13 ]; | |
function swap(a, i, j) { | |
var tmp = a[i]; | |
a[i] = a[j]; | |
a[j] = tmp; | |
} | |
function max_heapify(a, i, length) { | |
while (true) { |
var countryInput = $("#country"), | |
ddl = countryInput.data("kendoDropDownList"), | |
itemsCount = ddl.dataSource.view().length; | |
setInterval(function() { | |
ddl.select(~~(Math.random() * itemsCount)); | |
ddl.trigger("change"); | |
}, 3000); |
function jsHintTest(name, sourceFile, options) { | |
function validateFile(source) { | |
var i, len, err, | |
result = JSHINT(source, options), | |
errors = JSHINT.errors; | |
ok(result); | |
if (result) { | |
return; |