Skip to content

Instantly share code, notes, and snippets.

View thisandagain's full-sized avatar

Andrew Sliwinski thisandagain

View GitHub Profile
@thisandagain
thisandagain / helloworld.json
Created June 27, 2017 18:40
Scratch for the Tessel 2
{
"objName": "Stage",
"sounds": [],
"costumes": [],
"children": [{
"objName": "Sprite1",
"scripts": [
[
0,
0,
@thisandagain
thisandagain / index.js
Created March 8, 2016 17:16
requirebin sketch
var d3 = require('d3');
var topojson = require('topojson');
var Datamap = require('datamaps');
// Bind to window
window.datamaps = {};
window.datamaps.Datamap = Datamap;
// Render map
var map = new Datamap({element: document.getElementById('map')});
@thisandagain
thisandagain / README.md
Last active December 31, 2015 17:46
Scratch Project - JS Client API

Setup

var client = require('scratch-project-client')({
    username: 'foo',
    password: 'bar'
});

Getting a Project

package mozilla.org.webmaker.activity;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.RelativeLayout;
import mozilla.org.webmaker.R;
import mozilla.org.webmaker.WebmakerActivity;
import mozilla.org.webmaker.view.WebmakerWebView;
@thisandagain
thisandagain / element.json
Last active August 29, 2015 14:20
/users/:user/projects/:project/pages/:page/elements/:element
{
"id": 1,
"type": "image",
"attributes": {
"src": "https://cat.com/my/image/path.png"
},
"styles": {
"top": "0%",
"left": "0%",
"z-index": 1
@thisandagain
thisandagain / page.json
Last active August 29, 2015 14:20
/users/:user/projects/:project/pages
[
{
"id": 1,
"x": 0,
"y": 0,
"history": {
"created_at": "2015-04-20T16:11:13.961Z",
"updated_at": "2015-04-20T16:11:13.961Z",
"deleted_at": null
},
@thisandagain
thisandagain / project.json
Last active August 29, 2015 14:20
/users/:user/projects/:project
{
"id": 1,
"version": "0.0.0",
"title": "Yam Fries",
"featured": true,
"history": {
"created_at": "2015-04-20T16:11:13.961Z",
"updated_at": "2015-04-20T16:11:13.961Z",
"deleted_at": null
},
@thisandagain
thisandagain / user.json
Last active August 29, 2015 14:20
/users/:user
{
"id": 1234,
"username": "billmurray",
"locale": {
"language": "bn",
"country": "bd"
},
"history": {
"created_at": "2015-04-20T16:11:13.961Z",
"updated_at": "2015-04-20T16:11:13.961Z",
@thisandagain
thisandagain / discover.json
Last active August 29, 2015 14:20
/discover
[
{
"id": 1,
"version": "0.0.0",
"title": "Yam Fries",
"featured": true,
"history": {
"created_at": "2015-04-20T16:11:13.961Z",
"updated_at": "2015-04-20T16:11:13.961Z",
"deleted_at": null
@thisandagain
thisandagain / .aliases
Created February 12, 2015 02:23
ADB Aliases
alias devices='adb devices'
alias logcat='adb logcat CordovaLog:D *:S'
alias forward='adb forward tcp:6000 localfilesystem:/data/local/debugger-socket'