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
TestObject = Parse.Object.extend | |
className: "TestObject" | |
validate: (attributes, options) -> | |
console.log 'validating' | |
return "foo" | |
t = new TestObject | |
t.save() |
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
curl -X GET \ | |
-H "X-Parse-Application-Id: a9YF2w1IkjzHT8zCkOwK0p7JkH2Yfr88Ynp1RaL1" \ | |
-H "X-Parse-REST-API-Key: RagkfFQHSj7onw1IJ4AcBNgEKyauxFSPj7vGegph" \ | |
-G \ | |
--data-urlencode 'include=skills' \ | |
https://api.parse.com/1/classes/GameScore/ | |
{ | |
"results":[ | |
{ |
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
#!/bin/bash | |
echo -n "Checking OS version... " | |
if [[ $(sw_vers -productVersion) != 10.9.* ]]; then | |
echo "Your OS version is out of date." | |
exit 1 | |
else | |
echo "YES" | |
fi | |
echo -n "Checking if XCode is installed... " |
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
'use strict'; | |
// generated on 2014-09-17 using generator-tiy-webapp 0.0.8 | |
// Require your modules | |
var gulp = require('gulp'); | |
var $ = require('gulp-load-plugins')(); | |
var rimraf = require('rimraf'); | |
var exec = require('child_process').exec; | |
var prompt = require('gulp-prompt'); |
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 email = "email"; | |
var password = "password"; | |
var data = {email: email, password: password}; | |
Application.ref.createUser(data, function(error){ | |
if(! error ){ | |
ref.authWithPassword(data, function(error, authData){ | |
if( ! error && authData ){ | |
data.id = authData.uid; | |
var user = self.store.createRecord('user', data); |
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(){ | |
'use strict'; | |
window.ENV = window.ENV || {}; | |
window.ENV['simple-auth-firebase'] = { | |
firebase: new Firebase("https://blistering-torch-3318.firebaseio.com/") | |
}; | |
var defaults = { | |
firebase: null, | |
resourceName: 'users' |
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 items = ['a', 'b', 'c', 'd', 'e']; | |
console.log(items); | |
function logItem(item) { | |
console.log(item); | |
} | |
items.forEach(logItem); |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title></title> | |
<script src="bower_components/jquery/dist/jquery.js"></script> | |
<script src="main.js"></script> | |
</head> | |
<body> | |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title></title> | |
<link rel="stylesheet" href="bower_components/octicons/octicons/octicons.css"> | |
</head> | |
<body> | |
<ul class="repositories"> |
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
#!/bin/bash | |
mkdir $1 | |
cd $1 | |
touch index.html | |
mkdir scripts | |
mkdir styles | |
touch scripts/main.js | |
touch styles/main.scss | |
cd styles | |
bourbon install |
OlderNewer