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
/* | |
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | |
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | |
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | |
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | |
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | |
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | |
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
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
childProcess = require('child_process'); | |
process.env.PATH = String( | |
childProcess.execFileSync(\ | |
process.env.SHELL, | |
['-c', 'source $HOME/.bash_profile; echo $PATH'] | |
) | |
).trim() |
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 fs = require('fs'); | |
function MatrixSearch(file, search) { | |
var repo = fs.readFileSync(file, { | |
encoding: 'utf8' | |
}).trim(); | |
this.matrixSize = search.length | |
this.matrices = this.chunk(repo.split('\n').map(function(line) { | |
return this.chunk(line.split(''), this.matrixSize); |
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
(function(opts) { | |
'use strict'; | |
// Override MyComponent | |
$.MyComponent = $.content; | |
// Append all the children | |
var children = opts.children || []; | |
if (OS_ANDROID) { |
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
// For reference here are the vars being used | |
// | |
// protected final BrightcoveVideoView videoPlayer; | |
// protected final EventEmitter eventEmitter = new EventEmitterImpl(); | |
// private int shouldSeekTo = 0; | |
// private boolean correctingPlayPosition = false; | |
videoPlayer = new BrightcoveVideoView(context) { | |
@Override | |
public void seekTo(int msec) |
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
/*global Ti*/ | |
var _ = require('/application/shared/lib/underscore'); // needs underscore | |
exports.attach = function (proxy, to_attach, named, prefix) { | |
'use strict'; | |
var reservedEvents = ['pause', 'paused', 'resume', 'resumed', 'orientationchange']; | |
if (proxy && _.size(to_attach)) { |
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
<?php | |
namespace CreateFlow; | |
use Laravel; | |
use Route; | |
use Controller; | |
use Response; | |
/** | |
* Hark! It's a unicorn. |