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
/** | |
* The first commented line is your codelet’s title | |
*/ | |
p { | |
color: #f06; | |
font: italic 200% Georgia, serif; | |
transition: 1s cubic-bezier(.2,.6,.8,.8); | |
width: 200px; | |
} |
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
require 'opengl' | |
include Gl, Glu, Glut | |
WIDTH = 512 | |
HEIGHT = 512 | |
NEAR = 0.1 | |
FAR = 1000 | |
class Vec3 | |
attr_accessor :x, :y, :z |
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
<?xml version="1.0" encoding="utf-8"?> | |
<CodeTemplates version="3.0"> | |
<CodeTemplate version="2.0"> | |
<Header> | |
<_Group>UnityC#</_Group> | |
<Version /> | |
<MimeType>text/x-csharp</MimeType> | |
<Shortcut>B_</Shortcut> | |
<_Description /> | |
<TemplateType>Unknown</TemplateType> |
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
directives.directive('ngEnter', function(){ | |
return { | |
restrict: 'A', | |
link: function(scope, elem, attr, ctrl) { | |
elem.bind('keypress', function(e, ui){ | |
if (e.keyCode == '13') { | |
scope.$apply(function(s) { | |
s.$eval(attr.ngEnter); | |
}); | |
} |
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
NOTES_SHARP = ["C", "C#", "D", "D#", "E", "F", "F#", "G","G#", "A","A#","B"] | |
NOTES_FLAT = ["C", "Db", "D", "Eb", "E", "F", "Gb", "G","Ab", "A","Bb","B"] | |
def generate_midi_event_map(): | |
events = ['Note Off', | |
'Note On', | |
'Polyphonic Aftertouch', | |
'Control Mode Change', | |
'Program Change', | |
'Channel Aftertouch', |
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
(function($){ | |
var TILE_SIZE = 256; | |
var TILE_URL = "http://tile.openstreetmap.org/"; | |
$.fn.staticMap = function(point, lines, zoom){ | |
return this.each(function(i){ | |
var _this = this; | |
var width = $(this).width(); | |
var height = $(this).height(); |