This file has been truncated, but you can view the full file.
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
[111th CONGRESS Senate Bills] | |
[From the U.S. Government Printing Office via GPO Access] | |
[DOCID: s22pcs.txt] | |
[Placed on Calendar Senate] | |
Calendar No. 13 |
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
// Note that I wrote this in java in Processing - paste this GIST into processing to see it in action. | |
// It is not the most elegant thing ever but it does deal with end caps and ribbon loops and the like. | |
// If you port this over to say objective-c / opengl / c etc - you may need to deal with polygon direction | |
// here is a snapshot of it running : http://www.flickr.com/photos/anselmhook/6507471719/in/photostream | |
int nvertices = 0; | |
float[] vertexpool = new float[3000]; | |
float x1,x2,y1,y2; | |
void intersect(int kind, float x0, float y0, float x1,float y1,float x2,float y2,float x3,float y3,float x4,float y4) { |
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 "cinder/Cinder.h" | |
#if defined( CINDER_COCOA_TOUCH ) | |
#include "cinder/app/AppCocoaTouch.h" | |
typedef ci::app::AppCocoaTouch AppBase; | |
#else | |
#include "cinder/app/AppBasic.h" | |
#include "cinder/audio/FftProcessor.h" | |
typedef ci::app::AppBasic AppBase; | |
#endif |
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
/* | |
Some scratch code for testing a variety of patterns of client server connection. | |
I needed to send data from an android phone to a macbook via USB and I happened to be using C# under Unity 3D. Some of the problems I ran into included: | |
- co-routines under unity were not fully exhausting the tcp buffers fast enough i think; even when I aggressively polled until they were empty... | |
- kept running into a curious bug where when the android device overheated that there would be a huge latency in traffic from the android device to the desktop. | |
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
using UnityEngine; | |
using System.Collections; | |
[ExecuteInEditMode] | |
public class ArrowScript : MonoBehaviour { | |
public GameObject lookat; | |
public Camera camera; | |
public const float EDGE = 0.3f; | |
public const float DIST = 100; |
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
// A pile of hack code to play around with a version of conways life to play on a 16x16 ws2812b led panel using an arduino | |
// also some playing around perlin noise | |
///////////////////////////////////////////////////////////////////////////////////////////// | |
#include <math.h> |
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
#!/usr/bin/env python | |
# gdal to wavefront obj | |
try: | |
from osgeo import gdal | |
except ImportError: | |
import gdal | |
import sys |
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 is a node.js application. It relies on "npm serialport". | |
Save it as penwriter.js | |
Run it using | |
node penwriter.js | |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Web Notes</title> | |
<!-- Pull in Bootstrap to style things up a bit --> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap-theme.min.css"> |
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
using UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Collections.Specialized; | |
/** | |
* @author zz85 / http://www.lab4games.net/zz85/blog | |
* Extensible curve object | |
**/ |
OlderNewer