Skip to content

Instantly share code, notes, and snippets.

View emresebat's full-sized avatar

Emre Sebat emresebat

View GitHub Profile
Verifying I am +emresebat on my passcard. https://onename.com/emresebat
@emresebat
emresebat / parseLib.js
Created February 25, 2015 19:32
BaasBox Parse data fetch plugin
var getParseHeader = function () {
return {
"X-Parse-Application-Id": "ENTER_APP_ID",
"X-Parse-REST-API-Key": "ENTER_API_KEY",
"Content-Type": "application/json"
};
};
var getParseUrl = function (className) {
return "https://api.parse.com/1/classes/" + className;
@emresebat
emresebat / postBaasBoxPlugin.sh
Last active August 29, 2015 14:16
Shell scripts for BaasBox admin/plugin
#!/bin/bash
#post .js file contents to BaasBox to create plugin
#usage bash postBaasBoxPlugin.sh sample.js
#get fileName
fileName="$1"
#uncomment below line to read file contents to variable
#codeContent=$(<$fileName)