Skip to content

Instantly share code, notes, and snippets.

View meeDamian's full-sized avatar
👨‍💻
Lightning Networking

Damian Mee meeDamian

👨‍💻
Lightning Networking
View GitHub Profile
@meeDamian
meeDamian / loop.coffee
Last active August 29, 2015 14:04
change key:value to the list of [key, value]
transformer = (obj) -> [key, val] for own key, val of obj when "_" isnt key.charAt 0
'use strict';
var express = require('express');
var passport = require('passport');
var auth = require('../auth.service');
var router = express.Router();
var LocalStrategy = passport.authenticate('local', function (err, user, info) {
var error = err || info;
process.argv.forEach(function(val) {
if (val.indexOf('--app-suffix') > -1) {
counter++;
}
});
'use strict'
path = require 'path'
yeoman = require 'yeoman-generator'
util = require 'util'
ngUtil = require '../util'
ScriptBase = require '../script-base'
class Generator extends ScriptBase
futurists =
sculptor: "Umberto Boccioni"
painter: "Vladimir Burliuk"
poet:
name: "F.T. Marinetti"
address: [
"Via Roma 42R"
"Bellagio, Italy 22021"
]
A = (a) ->
a
.filter (b) -> b.type is 'email'
.map (b) -> b.value
B = (a) ->
b.value for b in a when b.type is 'email'
array = [
type: 'email'
'use strict'
module.exports = (grunt) ->
try
localConfig = require './server/config/local.env'
catch e
localConfig = {}
# Load grunt tasks automatically when needed
@meeDamian
meeDamian / input.json
Last active August 29, 2015 14:05
CoffeeScript mapping, or how to get killed if psycho inherits your code.
{
"id": "10201838385395896",
"displayName": "Damian Mee",
"name": {
"familyName": "Mee",
"givenName": "Damian"
},
"gender": "male",
"profileUrl": "https:\/\/www.facebook.com\/app_scoped_user_id\/10201838385395896\/",
"provider": "facebook",
var sendBitcoins =
exports.sendBitcoins =
function sendBitcoins(arg1, arg2, cb) {
// something
};
@meeDamian
meeDamian / persistentGuest.md
Created October 2, 2014 18:50
Easiest way to create a persistent Guest account on Mac OS X (tested on Mavericks and Yosemite)
  1. Create a new Standard User (name it ex. Blah),
  2. Log in as this user and setup account as you want it to be for Guest,
  3. Log out,
  4. Log in as any administrator (for root skip sudo),
  5. Execute those commands:
sudo rm -rf /Users/Blah/Library/Caches/*
sudo rm -rf /Users/Blah/Library/Keychains/login.keychain
sudo rm -rf /Users/Blah/Library/Preferences/SDMHelpData