This file contains 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 <SD.h> | |
void setup() { | |
Serial.begin(19200); | |
pinMode(10, OUTPUT); | |
if (!SD.begin(10)) { | |
Serial.println("Card failed, or not present"); | |
return; | |
} |
This file contains 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
code Segment para public 'code' | |
assume cs:code,ds:code,es:code | |
locals ; remove if you want to assemble | |
jumps ; with Masm | |
.386 | |
org 100h | |
YES equ 1 | |
NO equ 0 | |
This file contains 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
function spotify() { | |
count=$[$count+1] | |
id=`curl --silent -G --data-urlencode "q=$1" "https://api.spotify.com/v1/search?&type=artist,track" -H "Accept: application/json" | | |
grep "spotify:track:" | | |
head -n 1 | | |
cut -c 16-51` | |
if [ -z "$id" ] ; then | |
>&2 echo -e "\033[0;31m$1\033[0m" |
This file contains 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
var albums; | |
$.getJSON("list.php", function(data) { | |
albums = data; | |
loadIndex(); | |
}); | |
function loadIndex() { | |
if (location.hash!="") location.hash = ""; | |
$("h1").text("Siene Companje"); |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
/* | |
* This file is part of the Doodle3D project (http://doodle3d.com). | |
* | |
* Copyright (c) 2013, Doodle3D | |
* This software is licensed under the terms of the GNU GPL v2 or later. | |
* See file LICENSE.txt or visit http://www.gnu.org/licenses/gpl.html for full license details. | |
*/ | |
function ConfigAPI() { | |
This file contains 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 "testApp.h" | |
//-------------------------------------------------------------- | |
void testApp::setup(){ | |
ofSetFrameRate(60); //limit framerate to 60 | |
ofSetBackgroundAuto(false); //turn off automatic background clearing | |
ofEnableAlphaBlending(); //enable transparency | |
ofBackground(0); //set background to black | |
ball.x = 100; //initial position for ball |
This file contains 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
//////////// testApp.h | |
#pragma once | |
#include "ofMain.h" | |
class Ball { | |
public: | |
ofPoint pos; //it's better to use ofVec3f instead of ofPoint | |
ofPoint vel; |
This file contains 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
#pragma once | |
#include "ofMain.h" | |
#define NUM 100 | |
class Ball { | |
public: | |
ofPoint pos; //it's better to use ofVec3f instead of ofPoint | |
ofPoint vel; |
This file contains 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
/////////////////////////////////////////////// | |
#pragma once | |
#include "ofMain.h" | |
class testApp : public ofBaseApp{ | |
public: | |
void setup(); | |
void update(); |