Skip to content

Instantly share code, notes, and snippets.

@m4rk3r
m4rk3r / gist:9312131
Created March 2, 2014 19:19
batch dl youtube playlist
import requests
import json
from math import ceil
import os
import time
_PLAYLIST_ = 'PLA280ADDF60B3B17E'
_URL_ = 'https://gdata.youtube.com/feeds/api/playlists/{0}?v=2&alt=json'
_BY_ = 25
first=True
#include "pitches.h"
int pitch = NOTE_C8;
float notes[] = { 18, 20, 25, 32 };
int notecount = 4;
int couplet = 3;
int darkness = 50;
void setup(){
Serial.begin(9600);
/*************************************************
* Public Constants
*************************************************/
#define NOTE_B0 31
#define NOTE_C1 33
#define NOTE_CS1 35
#define NOTE_D1 37
#define NOTE_DS1 39
#define NOTE_E1 41
@m4rk3r
m4rk3r / gist:62f8dbcca58c6848dce2
Created September 22, 2014 00:09
Random + Mouse mapping
void setup(){
size(300,300);
}
void draw(){
fill(random(0,255),random(0,255),random(0,255));
rect(mouseX-15,mouseY-15,30,30);
}
@m4rk3r
m4rk3r / gist:5b8ac808bd68e432d29a
Last active August 29, 2015 14:06
Basic animation, variables & conditional
/* variables for pos, width & height of rectangle */
int leftPos;
int speed;
int rectW, rectH;
void setup() {
size(300, 300);
leftPos = 0;
speed = 1;
@m4rk3r
m4rk3r / gist:5c4a463f68ab5d98c749
Last active August 29, 2015 14:23
Batch blender
from os import mkdir
from os.path import exists, join
from subprocess import Popen
#blender = 'c:\Program Files\Blender Foundation\Blender\Blender.exe'
blender = '/Applications/Blender/blender.app/Contents/MacOS/blender'
# filepath = 'c:\Users\studio\Dropbox\files\'
filepath = '/Users/mark/Dropbox/files/'
@m4rk3r
m4rk3r / batch.py
Created January 23, 2016 02:06
Run a batched animation render acrosss multiple blender files
from os import mkdir
from os.path import exists, join
from subprocess import Popen
blender = 'c:\\Program Files\\Blender Foundation\\Blender\\Blender.exe'
#blender = '/Applications/Blender/blender.app/Contents/MacOS/blender'
filepath = 'c:\\Users\\studio\\Dropbox\\files\\'
#filepath = '/Users/mark/Dropbox/files/'
int pos = 155;
int M = 255;
int m = 155;
int dir = 1;
void setup(){
pinMode(9,OUTPUT);
Serial.begin(9600);
https://www.youtube.com/watch?v=6Mdgqpat0Ao
https://www.youtube.com/watch?v=efbMJL8FAvk
https://www.youtube.com/watch?v=xcyOzDIQF-M
https://www.youtube.com/watch?v=lmfXflZ06hg
https://www.youtube.com/watch?v=sKoBpDM9S8c
https://www.youtube.com/watch?v=OjSuUHG4f_w
https://www.youtube.com/watch?v=gEaLl0ZNFB4
https://www.youtube.com/watch?v=q96o9AvJO0M,2
https://www.youtube.com/watch?v=pEw3B3E5F6s,3
https://www.youtube.com/watch?v=gq9fGwJ_HQE,39
https://www.youtube.com/watch?v=vyut3GyQtn0,5
https://www.youtube.com/watch?v=n7rfYjgPRiM,5
https://www.youtube.com/watch?v=w-o4pZA0OPM
https://www.youtube.com/watch?v=vcPX0I1sc4I,5
https://www.youtube.com/watch?v=bJSgAOrS3-w,15
https://www.youtube.com/watch?v=PxvjXDAfPhk,15
https://www.youtube.com/watch?v=76E-thr2I14,20