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
| /** | |
| * Module dependencies. | |
| */ | |
| var express = require('express') | |
| , routes = require('./routes') | |
| , user = require('./routes/user') | |
| , http = require('http') | |
| , path = require('path'); |
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
| $ ffmpeg -i input1.MOV -qscale 0 input1.mpg | |
| # ffmpeg -i input2.MOV -qscale 0 input2.mpg | |
| $ ffmpeg -i input3.MOV -qscale 0 input3.mpg |
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 <UIKit/UIKit.h> | |
| #import <AVFoundation/AVFoundation.h> | |
| @interface AVPlayerView : UIView | |
| @end |
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
| - (id)initWithIndexPath:(NSIndexPath*)indexPath andVideoPlayer:(AVPlayer *)videoPlayer{ | |
| self = [super init]; | |
| if( self ) { | |
| AVPlayerLayer* layer = (AVPlayerLayer*)playerView.layer; | |
| layer.videoGravity = AVLayerVideoGravityResizeAspect; | |
| layer.player = videoPlayer; | |
| label.text = [NSString stringWithFormat:@"Movie %d",indexPath.row]; |
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
| $ git clone [email protected]:matschaffer/knife-solo.git |
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
| ^(int n) { | |
| return n + 1; | |
| }; | |
| int (^plusOne) (int) = ^(int n) { | |
| return n + 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
| //console | |
| [source,cypher] | |
| ---- | |
| CREATE (n{name:'cypher'}) -[r:LIKES]-> ({name:'icecream'}) | |
| RETURN n.name, r; | |
| ---- |
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
| = Cypher tutorial | |
| This gist is for my Cypher learning. | |
| // graph | |
| // setup | |
| [source,cypher] | |
| ---- | |
| CREATE (n:Actor {name:"Doraemon"}) | |
| ---- |
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 passport = require('passport'); | |
| var YJStrategy = require('../lib/passport-yj/strategy.js'); | |
| passport.use(new YJStrategy({ | |
| clientID : <CLIENT_ID>, | |
| clientSecret : <CLIENT_SECRET>, | |
| callbackURL : "http://lewuathe.github.io", | |
| }, function(accessToken, refreshtoken, profile, done){ | |
| // With this accessToken you can access user profile data. | |
| // In the case that accessToken is expired, you should |
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 sbt._ | |
| import sbt.Keys._ | |
| object TestBuild extends Build { | |
| lazy val test = Project( | |
| id = "test", | |
| base = file("."), | |
| settings = Project.defaultSettings ++ Seq( | |
| name := "test", |