View Unity3DArrow
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; |
View ConwayArduinoColor
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> |
View gdal2obj.py
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 |
View gist:f5b1c2dc0117757a1141
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 | |
View publish.php
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"> |
View Congress Senate Bill to Designate Certain Land as Components of the National Wilderness Preservation System
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 |
View migrate.rb
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
require 'date' | |
require 'net/http' | |
require 'uri' | |
require 'open-uri' | |
require 'rubypress' | |
require 'mime' | |
require 'mime/types' | |
require 'imgkit' | |
# goals |
View gist:6818713
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 |
View early_out.mm
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 small bit of kvetching... | |
Imagine in Shakespeare if a sonnet didn't hew towards the core message but instead had you hold all the loose blocks of marble in working memory. | |
My mistresses eyes are like the sun in no way, but in the way they are not like the sun so is her hair like wires, and in the way they are like the sun there is nothing further to remark upon. | |
By a similar quality it bugs me when early out conditions are deferred to the end of a code block. For me this is probaby a carry over from working in assembler. In early programming environments there was both a computational and cognitive cost to jumping around a block of other code prior to ceding control. Modern compilers optimize this away but there's still a cognitive burden to having to hold a larger model in mind. If you think of a piece of code as a tree of branching possibilities then it makes sense to whittle away those branches as quickly as possible so that you're left with the minimum functionality needed to close out the responsib |
View Tubular.cs
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