This file contains 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.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class SnapPositionHelper : MonoBehaviour | |
{ | |
public OVRGrabber hand; | |
public Transform snapOffset; | |
void Update() |
This file contains 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
// @flow | |
// @author tyler | |
import mysql from 'mysql'; | |
import type {IConfigReader} from '../ConfigReader'; | |
export type TDataRow = *; | |
export type TDataClientType = 'mysql' | 'sqlite3'; |
This file contains 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 Joi from 'joi'; | |
import _ from 'lodash'; | |
import { | |
BadRequestError | |
} from './errors'; | |
const _promisedValidate = (msg, schema) => { | |
return new Promise((resolve, reject) => { | |
Joi.validate(msg, schema, { |
This file contains 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 util from 'util'; | |
class AppError { | |
constructor(message) { | |
Error.call(this); | |
Error.captureStackTrace(this, this.constructor.name); | |
this.name = this.constructor.name; | |
this.message = message; | |
} |
This file contains 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
package pogs | |
import ( | |
"net/http" | |
"reflect" | |
"strings" | |
"github.com/gorilla/mux" | |
"github.com/tshaddix/parcel/encoding" | |
) |
This file contains 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
/** | |
* Created by tyler on 5/1/14. | |
*/ | |
(function(){ | |
'use strict'; | |
angular.module('fsApp') | |
.directive('nsCents', [function () { |
This file contains 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 Busboy = require('busboy'), | |
Grid = require('gridfs-stream'), | |
mongoose = require('mongoose'), | |
router = module.exports = require('express').Router(); | |
var gfs = new Grid(mongoose.connection.db, mongoose.mongo); | |
router | |
.get('/:item/receipt/info', function(req, res, next){ | |
gfs.files.find({ |
This file contains 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
/* | |
* Checks two Date objects based on human date (mm/dd/yyyy) two test equality | |
* | |
* @param {Date} date1 | |
* @param {Date} date2 | |
* @return {Boolean} | |
*/ | |
function sameHumanDate(date1, date2){ | |
if (date1.getDate() === date2.getDate() && | |
date1.getFullYear() === date2.getFullYear() && |
This file contains 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
oo.load(function(){ | |
var regionQuery = new oo.Query('PROFILE ID', "30d"); | |
//Add metrics, dimensions, and filter for region | |
regionQuery.addMetric('ga:visits'); | |
regionQuery.addDimension('ga:metro'); | |
regionQuery.setFilter('ga:region==California'); | |
regionQuery.execute(function(data){ |
This file contains 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
// Add COR ability | |
$httpProvider.defaults.useXDomain = true; | |
delete $httpProvider.defaults.headers.common['X-Requested-With']; | |
$httpProvider.defaults.withCredentials = true; |
NewerOlder