Skip to content

Instantly share code, notes, and snippets.

Avatar

Jacob Smith jacobthemyth

View GitHub Profile
@jacobthemyth
jacobthemyth / error.sh
Last active Aug 29, 2015
Parse query 500 Error
View error.sh
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":[
{
View checkit.sh
#!/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... "
View gulpfile.js
'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');
View auth.js
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);
View simple-auth-firebase.js
(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'
View iterator.js
var items = ['a', 'b', 'c', 'd', 'e'];
console.log(items);
function logItem(item) {
console.log(item);
}
items.forEach(logItem);
View index.html
<!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>
View index.html
<!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">
View webapp
#!/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
View three-and-five.js
// Adds all the natural numbers below `end` that are multiples of any of the
// values in `multiples`
//
// end - The Number that is the upper limit
// multiples - An Array of Numbers that will be checked for divisibility
//
// Examples
//
// multiples(1000, [3, 5])
// // => 233168
You can’t perform that action at this time.