This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --# Main | |
| function setup() | |
| displayMode(FULLSCREEN) | |
| fontSize(40) | |
| font("Futura-CondensedExtraBold") | |
| clones = {} | |
| bodies = {} | |
| graves = {} | |
| generate() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --# 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --# Main | |
| -- Disintegration Shader | |
| supportedOrientations(LANDSCAPE_ANY) | |
| function setup() | |
| -- parameter.watch("grav") | |
| -- parameter.watch("gravBack") --for bug-checking the get local point function | |
| print ("tilt to spin the sphere \ntap the screen to explode / unexplode the mesh") | |
| aerial = color(28, 27, 54, 255) | |
| verts = Isosphere(5) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --# Main | |
| -- Markdown Codea | |
| -- by Yojimbo2000 | |
| displayMode(FULLSCREEN) | |
| function setup() | |
| setText() | |
| y,vel = 0,0 | |
| scrollY={} --store deltas for smooth scrolling upon finger release | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --[[ | |
| Perspective v2.0.2 | |
| A library for easily and smoothly integrating a virtual camera into your game. | |
| Based on modified version of the Dusk camera system. | |
| v2.0.2 adds a more stable tracking system and re-implements scrollX and scrollY | |
| --]] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --# block | |
| block = class() | |
| function block:init(x,y,z,dim) | |
| -- you can accept and set parameters here | |
| --use parameters to define all vertices needed to make a cube | |
| self.verts={ | |
| vec3(x+dim/2,y-dim/2,z+dim/2), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #import <Foundation/Foundation.h> | |
| #import <MessageUI/MessageUI.h> | |
| #import "CodeaAddon.h" | |
| @interface SharingAddon : CodeaAddon<MFMailComposeViewControllerDelegate> | |
| + (instancetype) sharedInstance; | |
| @end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #import "SharingAddon.h" | |
| #import "StandaloneCodeaViewController.h" | |
| #import "lua.h" | |
| #import "lauxlib.h" | |
| #pragma mark - Lua Functions | |
| static int share(struct lua_State *L); | |
| static int email(struct lua_State *L); |
NewerOlder