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
<html ng-app="application" preloader="splash"> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> | |
<title>Preloader Experiment</title> | |
<script src="http://code.angularjs.org/angular-1.0.0rc10.min.js"></script> | |
<script src="http://code.jquery.com/jquery-1.7.2.min.js"></script> | |
<script src="preloader-0.0.1.js"></script> |
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 Podio = require('./podio'); | |
Podio.getAccessToken(function(accessToken) { | |
deviceInfoList.forEach( function( deviceInfo ) { | |
Podio.search( deviceInfo.properties[ 0 ].value, accessToken, function( searchResult ) { | |
console.log( searchResult ); | |
}); |
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
function Stack() { try { throw Error() } catch(ex) { return ex.stack } } | |
print( Stack() ); | |
/* | |
PRINTS: | |
Error()@:0 | |
Stack()@test.js:1 | |
@test.js:3 | |
/* |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
/**************************************************************************** | |
** | |
** Reference: https://bitbucket.org/gregschlom/qmlscrollbar/src/tip/ScrollBar.qml | |
** | |
****************************************************************************/ | |
import QtQuick 1.1 | |
Rectangle { |
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
module.exports = function (server) { | |
var router = server.loopback.Router(); | |
router.get('/whoami', function (req, res) { | |
var AccessToken = server.models.AccessToken; | |
AccessToken.findForRequest(req, {}, function (aux, accesstoken) { | |
if (accesstoken == undefined) { | |
res.status(401); |
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
<link rel="import" href="../polymer/polymer.html"> | |
<polymer-element name="bbb-songkran2015"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; |
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
<App Theme="Basic"> | |
<JavaScript File="fuse-resource/fuse-resource.js" ux:Global="fuseResource" /> | |
<DockPanel> | |
<JavaScript> | |
var Observable = require("FuseJS/Observable"); |
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
/// <reference path='../../typings/tsd.d.ts' /> | |
/// <reference path='../../local_modules/tsd.d.ts' /> | |
import path = require('path'); | |
import async = require('async'); | |
import _ = require('lodash'); | |
import IRemoteMethodCallbackFunction = loopback.IRemoteMethodCallbackFunction; | |
import IMySQLTableDefinition = loopback.IMySQLTableDefinition; | |
import IPersistenceModelItem = loopback.IPersistenceModelItem; |
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
/// <reference path='../../typings/tsd.d.ts' /> | |
import path = require('path'); | |
import async = require('async'); | |
function ModuleDef(server:any, next:Function):void { | |
var glob:any = require("glob"); | |
glob('local_modules/**/hooks/**/*.js', function (err:Error, hooks:Array<string>):void { |
OlderNewer