Skip to content

Instantly share code, notes, and snippets.

@systemist
systemist / error.sh
Last active August 29, 2015 14:00
Parse query 500 Error
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":[
{
#!/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... "
'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');
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);
(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'
var items = ['a', 'b', 'c', 'd', 'e'];
console.log(items);
function logItem(item) {
console.log(item);
}
items.forEach(logItem);
<!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>
<!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">
#!/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
// 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