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
| // imports of all embedded sketched | |
| ... | |
| // global variables of embedding sketch | |
| ... | |
| // global variables of Movie sketch | |
| ... | |
| // global variables of Background sketch |
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
| #include <stdlib.h> | |
| #include <stdint.h> | |
| #include <stdio.h> | |
| #include <ctype.h> | |
| #include <limits.h> | |
| #include <math.h> | |
| #include <sysexits.h> | |
| inline static double square(double x) |
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
| //3D Spectrogram with Microphone Input | |
| //Modified by kylejanzen 2011 - https://kylejanzen.wordpress.com | |
| //Based on script wwritten by John Locke 2011 - http://gracefulspoon.com | |
| //Output .DXF file at any time by pressing "r" on the keyboard | |
| import processing.dxf.*; | |
| import ddf.minim.analysis.*; | |
| import ddf.minim.*; |
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
| int x; | |
| int y; | |
| float outsideRadius = 150; | |
| float insideRadius = 100; | |
| void setup() | |
| { | |
| size(640, 360); | |
| background(204); |
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
| window["colorElements"] = { | |
| "frontColors" : ["f8c5c5","f8dfc5","f8f8c5","dff8c5","c5f8c5","c5f8df","c5f8f8","c5dff8","c5c5f8","dfc5f8","f8c5f8","f8c5df","f28c8c","f2bf8c","f2f28c","bff28c","8cf28c","8cf2bf", | |
| "8cf2f2","8cbff2","8c8cf2","bf8cf2","f28cf2","f28cbf","eb5252","eb9f52","ebeb52","9feb52","52eb52","52eb9f","52ebeb","529feb","5252eb","9f52eb","eb52eb","eb529f", | |
| "e51919","e57f19","e5e519","7fe519","19e519","19e57f","19e5e5","197fe5","1919e5","7f19e5","e519e5","e5197f","ac1313","ac5f13","acac13","5fac13","13ac13","13ac5f", | |
| "13acac","135fac","1313ac","5f13ac","ac13ac","ac135f","720c0c","723f0c","72720c","3f720c","0c720c","0c723f","0c7272","0c3f72","0c0c72","3f0c72","720c72","720c3f", | |
| "390606","391f06","393906","1f3906","063906","06391f","063939","061f39","060639","1f0639","390639","39061f","ffffff","e9e9e9","d4d4d4","bfbfbf","aaaaaa","949494","7f7f7f","6a6a6a", | |
| "555555","3f3f3f","2a2a2a","151515"], | |
| "frontColors_group" : { | |
| "f8c5c5" : "Red","f28c8c" : "Red","eb5252" : "Red","e51919" : "Red" |
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 java.io.InputStream; | |
| import java.io.ByteArrayOutputStream; | |
| import java.io.IOException; | |
| class FPxToFloatClass | |
| { | |
| /** | |
| * Converts a series of bytes in an FP*-like format to a native floating- | |
| * point type. |
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
| #!/usr/bin/python3 | |
| import sys, os, os.path | |
| for original_name in sys.argv[1:]: | |
| original_name_noext, extension = os.path.splitext(original_name) | |
| new_name = original_name_noext[:-11] + extension | |
| print('{0!r} => {1!r}'.format(original_name, new_name)) | |
| if os.path.exists(new_name): | |
| reply = None |
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
| --- Indexing_unix.sh 2016-10-04 10:38:56.804167702 +0200 | |
| +++ Indexing_unix.sh 2016-10-04 10:48:30.712992854 +0200 | |
| @@ -105,16 +105,16 @@ | |
| fi | |
| fi | |
| - if [ "$ver_major" = "" ]; then | |
| - return; | |
| - fi | |
| - if [ "$ver_major" -gt "1" ]; then |
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 sys, random | |
| if len(sys.argv) < 3: | |
| sys.argv.append(input()) | |
| cropsize = float(sys.argv[1]) | |
| llx, lly, urx, ury = map(float, sys.argv[2].split(None, 3)) | |
| width = urx - llx | |
| height = ury - lly |
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
| #!/bin/bash | |
| set -eu | |
| declare -r TMP="${1:-"${TMP:-/tmp}/find-test"}" | |
| declare -ri file_count="${2:-1000000}" pad="${3:-255}" | |
| declare -ar find=( find "$TMP" -mount -mindepth 1 ) | |
| # Preparation | |
| mkdir -p -- "$TMP" | |
| declare -i free_inodes="$(stat -f -c %d -- "$TMP")" | |
| if [ "$free_inodes" -gt 0 ]; then |
OlderNewer