Skip to content

Instantly share code, notes, and snippets.

View gmarty's full-sized avatar

Guillaume C. Marty gmarty

View GitHub Profile
var Hogan = require('./twitter-hogan');
var renderOptions = { asString: true, sectionTags: [{ o: '_i', c: 'i' }] };
var translateMustache = require('./translate-mustache');
function extractPartials(tmpl) {
// need eval to pull the partials out of the Hogan-generated string
/* eslint-disable no-eval */
var hoganParams = eval(`(${tmpl})`);
/* eslint-enable no-eval */
var partialNames = [];
@justindarc
justindarc / enable_wifi_direct.sh
Last active September 4, 2018 20:08
enable_wifi_direct.sh
#!/bin/sh
adb shell "mount -o rw,remount /system"
adb shell "stop b2g"
adb shell "echo \"ro.moz.wifi.p2p_supported=1\" >> /system/build.prop"
adb shell "mount -o ro,remount /system"
adb reboot
@skreutzberger
skreutzberger / js-dev-berlin.md
Created August 27, 2012 12:20
Senior Frontend Developer Berlin

#Open Position "Senior Frontend Developer Berlin"

For our stealth high-tech cloud startup in Berlin, I am searching for a capable member for our team of frontend hackers. The main task would be implementing our new browser-based web app on mobile and desktop devices and overcoming current limitations in the different implementations of the HTML5 standard. The web app sets new standards in user interface and what you can do in the browser and actually looks more like a computer game than a mobile web interface. That’s why knowledge in vector graphics programming, animation etc. is required.

In general, it is a technically very challenging high-tech position. That’s why we are looking for experienced frontend hackers with a flexible mindset and skills in software design and coding and a reputation in the open source community.

Required professional experience:

  • Javascript and another web language
  • Backbone.js
@naholyr
naholyr / update-sublime-text.sh
Created September 6, 2011 15:27
Install or update Sublime Text from web site
#!/bin/bash
# Requirements: sed, grep, curl, pkill
# User configuration
LOCAL_INSTALL="/usr/lib/sublime-text-2" # Must be user-writable
REPO="dev" # "dev" for dev releases, or "2" for beta releases
TARGET_BUILD="Linux 32 bit" # can be one of "Windows", "Windows 64 bit", "OS X", "Linux 32 bit", "Linux 64 bit"
# Check if sublime text is running