Skip to content

Instantly share code, notes, and snippets.

private visitNode(node: Node): void {
if (isClassDeclaration(node)) {
console.log("Hi class:", node.name);
}
node.forEachChild(child => this.visitNode(child));
}
function something() {
//code goes here.
}
@johnnyhalife
johnnyhalife / local.settings.js
Created December 19, 2017 21:04
local.settings.json
{
"IsEncrypted": false,
"Values": {
"AzureWebJobsStorage": "<Storage Account for WebJobs Control Jobs>",
"AzureWebJobsDashboard": "",
// Azure Media Services Credentials
"AMSAADTenantDomain": "<Azure Active Directory Domain associated with Media Services>",
"AMSRESTAPIEndpoint": "<Azure Media Services Endpoint>",
"AMSRESTAPIClientId": "<Azure Media Services ClientID>",
@johnnyhalife
johnnyhalife / 2015-10-07.md
Last active October 7, 2015 18:57
Johnny Daily's

#johnnydaily - Today (remote):

  • Breakfast & chat with Matt
  • Lunch with @lechantaux
  • Random issues catch-up
  • Fix HMH issue reported by Esteban
  • Enable Globant for Gizmo
  • Web Font Versioning
@johnnyhalife
johnnyhalife / gist:056849b66fb7cf9fb32a
Last active August 29, 2015 14:04
Installing Mural Sketch for Windows

These are the installation instructions for the bits to be found at http://win.mural.ly. In order to install the latest version of Mural.ly for Windows, please follow the next steps:

  • Download the release from http://win.mural.ly

  • Right click the file and choose the option "Extract all"

  • Open the just created folder with all the extracted files

  • Open one of the appropiated folder depending on your operative system (If you don't know if your OS is 64-bit or 32-bit, check system settings)

var fetched = 0, step = 100, skip = 0;
var queueName = 'operations';
var queueService = azure.createQueueService().withFilter(new azure.ExponentialRetryPolicyFilter());
async.doWhilst(function(allDone){
getDb(function(db) { // traes la conexión a mongo
getQueue(queueName, function(err) { // traes la cola
if(err) allDone(err);
@johnnyhalife
johnnyhalife / Register-Testflight-iOS-Device.md
Last active August 29, 2015 13:56
Registering your iOS device to beta test Mural.ly apps

Registering your iOS device to beta test Mural.ly apps

We are creating new cool prototypes and apps all the time, since these aren't yet public we're using Test Flight App for distribution. Below you will find the instructions to enroll on TestFlight in order to access Mural.ly beta builds.

  • Using Safari open the following link http://tflig.ht/1kjLFY8, in order join Mural.ly Beta Testing team you need a TestFlight account, you can either Sign-in with your existing account or create a new one.

    Safari Browser

    Sign In

  • Once you sign up with TestFlight and login to the dashboard for the first time, you will be asked to connect your device, allowing us to access the device's Unique Device Identifier (UDID).

    Connect your device.

  • When clicked the Connect Device will prompt you to install the Test Flight provisioning profil

Error: read ECONNRESET
at errnoException (net.js:901:11)
at onread (net.js:556:19)
at TCP.<anonymous> (\\10.207.200.71\volume-24-default\2f3d1379c05cbce7972b\8b387732ca1140f5b0f4513de074cd63\site\wwwroot\node_modules\newrelic\node_modules\continuation-local-storage\node_modules\async-listener\glue.js:177:31)
---------------------------------------------
at Readable.on (_stream_readable.js:689:33)
at http.js:1753:12
at \\10.207.200.71\volume-24-default\2f3d1379c05cbce7972b\8b387732ca1140f5b0f4513de074cd63\site\wwwroot\node_modules\newrelic\node_modules\continuation-local-storage\node_modules\async-listener\glue.js:177:31
at process._tickCallback (node.js:415:13)
---------------------------------------------
2014-01-16T21:27:12 KuduSync.NET from: 'D:\home\site\repository' to: 'D:\home\site\wwwroot'
2014-01-16T21:27:12 Copying file: 'iisnode.yml'
2014-01-16T21:27:12 Copying file: 'package.json'
2014-01-16T21:27:13 Node.js versions available on the platform are: 0.6.17, 0.6.20, 0.8.2, 0.8.19, 0.8.26, 0.10.5, 0.10.18, 0.10.21.
2014-01-16T21:27:13 Selected node.js version 0.10.21. Use package.json file to choose a different version.
2014-01-16T21:27:14 npm WARN package.json express-resource@1.0.0 No repository field.
2014-01-16T21:27:14 npm WARN package.json gently@0.9.2 No repository field.
2014-01-16T21:27:14 npm http GET https://registry.npmjs.org/azure
2014-01-16T21:27:16 npm http 200 https://registry.npmjs.org/azure
2014-01-16T21:27:16 npm http GET https://registry.npmjs.org/azure/-/azure-0.8.0.tgz