This file has been truncated, but you can view the full file.
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
0 info it worked if it ends with ok | |
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe', | |
1 verbose cli 'C:\\Users\\katopz\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js', | |
1 verbose cli 'install', | |
1 verbose cli 'http://github.com/bessdsv/bower-installer.git' ] | |
2 info using [email protected] | |
3 info using [email protected] | |
4 silly loadCurrentTree Starting | |
5 silly install loadCurrentTree | |
6 silly install readLocalPackageData |
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 Foundation | |
// 2016 eh? | |
var dateString = "Fri Jan 01 00:00:00 +1100 2016" | |
let dateFormatter = NSDateFormatter() | |
dateFormatter.dateFormat = "E MMM dd HH:mm:ss Z yyyy" | |
let calendar = NSCalendar.currentCalendar() | |
let components = calendar.components([.Day , .Month , .Year], fromDate: dateFormatter.dateFromString(dateString)!) |
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 System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.IO; | |
using System.Net; | |
using System.Net.Sockets; | |
using System.Threading; | |
using System.Diagnostics; |
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 System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.IO; | |
using System.Net; | |
using System.Net.Sockets; | |
using System.Threading; | |
using System.Diagnostics; |
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
Shader "Transparent/Cutout/DiffuseBack" { | |
Properties { | |
_Color ("Main Color", Color) = (1,1,1,1) | |
_MainTex ("Base (RGB) Trans (A)", 2D) = "white" {} | |
_Cutoff ("Alpha cutoff", Range(0,1)) = 0.5 | |
} | |
SubShader { | |
Tags {"Queue"="AlphaTest" "IgnoreProjector"="True" "RenderType"="TransparentCutout"} | |
Cull front |
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
zip -d foo.zip __MACOSX/\* | |
zip -d foo.zip \*/.DS_Store |
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
// ref : https://github.com/meteorhacks/meteor-aggregate | |
Meteor.startup(function () { | |
// C : insert | |
console.log("## insert"); | |
// insert list | |
var list_id = Lists.insert({ | |
name: "foo", | |
incompleteCount: 1, |
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
Meteor.methods({ | |
getFirebaseToken: function (userId) { | |
if (!userId) { | |
throw new Meteor.Error("not-logged-in", | |
"Must be logged in to enter chat."); | |
} | |
var FirebaseTokenGenerator = Meteor.npmRequire("firebase-token-generator"); | |
var tokenGenerator = new FirebaseTokenGenerator(YOUR_FIREBASE_SECRET); |
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
// https://github.com/firebase/firebase-token-generator-node | |
Meteor.methods({ | |
enterChat: function (userId) { | |
if (!userId) { | |
throw new Meteor.Error("not-logged-in", | |
"Must be logged in to enter chat."); | |
} |
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 Firebase = Meteor.npmRequire("firebase"); | |
var firebase = new Firebase('https://radiant-inferno-foo.firebaseio.com/'); | |
firebase.on('child_added', willLog); | |
firebase.on('child_changed', willLog); | |
firebase.on('child_removed', willLog); | |
function willLog(snapshot) { | |
console.log(snapshot.key() + " : " + EJSON.stringify(snapshot.val())); | |
} |