This file contains hidden or 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
/* | |
Simple Node.js Utility module to enable easy creation of models using node-mongodb-native | |
Useage:- | |
var dao = require('./mongodb-dao'); | |
exports.NewClient = function(clientId, plan){ | |
return { | |
clientId: clientId, | |
plan: plan, |
This file contains hidden or 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
/* | |
Useage | |
**require** | |
uaw = require('.[path]/universal-analytics-wrapper'), | |
** express setup ** | |
app.use(uaw.cookieConfigurer('UAXXXXX')); | |
** get visitor ** |
This file contains hidden or 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
Michaels-MacBook-Pro:hackify_ruby michael$ bundle exec ruby poc.rb | |
b.js | |
subfolder | |
a.js | |
^Cpoc.rb:16:in `sleep': Interrupt | |
from poc.rb:16:in `<main>' | |
Michaels-MacBook-Pro:hackify_ruby michael$ bundle exec ruby poc.rb | |
fiddleWithAsync.js | |
^Cpoc.rb:16:in `sleep': Interrupt |
This file contains hidden or 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
Michaels-MacBook-Pro:Workspace michael$ sudo npm install -g meanio@latest | |
Password: | |
npm http GET https://registry.npmjs.org/meanio | |
npm http 304 https://registry.npmjs.org/meanio | |
npm WARN engine [email protected]: wanted: {"node":"0.10.x","npm":"1.4.x"} (current: {"node":"v0.10.15","npm":"1.3.5"}) | |
npm http GET https://registry.npmjs.org/colors | |
npm http GET https://registry.npmjs.org/commander | |
npm http GET https://registry.npmjs.org/lodash | |
npm http GET https://registry.npmjs.org/mkdirp | |
npm http GET https://registry.npmjs.org/mongodb |
This file contains hidden or 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
//*****useage******* | |
//var config = require('config_' + (process.env.NODE_ENV || 'dev')); | |
console.log('*** using dev config ***'); | |
exports.mongo_db_address = 'localhost'; | |
exports.mongo_db_port = 27017; | |
exports.mongo_db_name = 'myDB'; | |
exports.mongo_db_user = null; | |
exports.mongo_db_pass = null; |
This file contains hidden or 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
<html> | |
<head> | |
<script src="bower_components/react/react.js"></script> | |
<script src="bower_components/react/JSXTransformer.js"></script> | |
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.css" type="text/css"/> | |
</head> | |
<body> | |
<div class="container" id="container"> | |
</div> |
This file contains hidden or 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
using UnityEngine; | |
using System.Collections; | |
using UnityEngine.UI; | |
using System.Collections.Generic; | |
public class TextController : MonoBehaviour { | |
public Text questionText; | |
private enum StateKey {Car, OpenWindow, Docs, MissingDog, DeadBug, Freakout, Police, Haircut, Court, PayFine, GoldCoast}; | |
private StateKey currentState; |
This file contains hidden or 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 frontend = require('../controllers/frontend'), | |
config = require('../config'), | |
express = require('express'), | |
utils = require('../utils'), | |
frontendRoutes; | |
frontendRoutes = function frontendRoutes(middleware) { | |
var router = express.Router(), | |
subdir = config.paths.subdir, |
This file contains hidden or 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 React from "react"; | |
export default class DraggableComponent extends React.Component{ | |
constructor(props){ | |
super(props); | |
this.isDragging = false; | |
this.originalClientX = 0; | |
this.originalClientY = 0; | |
this.originalTop = 0; | |
this.originalLeft = 0; |
This file contains hidden or 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 React from "react"; | |
export default function GetNasty(TargetComponent){ | |
return class GetNasty extends React.Component{ | |
handleOnClick($event){ | |
alert("You suck!"); | |
} | |
render(){ | |
const props = Object.assign({ |
OlderNewer