Skip to content

Instantly share code, notes, and snippets.

@Techdojo
Techdojo / Project.lua
Created September 23, 2015 22:01 — forked from anonymous/Project.lua
Gists Codea Upload
--# Intro00
function setup()
title = "blendMode tutorial"
code = "-------- \n(optimized for LANDSCAPE) \n---------"
info =
[[
blendMode(...) function can change the way colors are blended on the screen.
This project shows some examples of use of this function.
@Techdojo
Techdojo / main.lua
Created September 23, 2015 22:02 — forked from anonymous/main.lua
Necrohelp
--# Main
function setup()
displayMode(FULLSCREEN)
fontSize(40)
font("Futura-CondensedExtraBold")
clones = {}
bodies = {}
graves = {}
generate()
// Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible).
// Tweak the makePrettyJSON_ function to customize what kind of JSON to export.
var FORMAT_ONELINE = 'One-line';
var FORMAT_MULTILINE = 'Multi-line';
var FORMAT_PRETTY = 'Pretty';
var LANGUAGE_JS = 'JavaScript';
var LANGUAGE_PYTHON = 'Python';
@Techdojo
Techdojo / instagram_scrape.php
Created September 11, 2018 19:46 — forked from cosmocatalano/instagram_scrape.php
Quick-and-dirty Instagram web scrape, just in case you don't think you should have to make your users log in to deliver them public photos.
<?php
//returns a big old hunk of JSON from a non-private IG account page.
function scrape_insta($username) {
$insta_source = file_get_contents('http://instagram.com/'.$username);
$shards = explode('window._sharedData = ', $insta_source);
$insta_json = explode(';</script>', $shards[1]);
$insta_array = json_decode($insta_json[0], TRUE);
return $insta_array;
}