This document has moved to:
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
| /** | |
| * Author Teemu Mäntykallio | |
| * Initializes the library and turns the motor in alternating directions. | |
| */ | |
| #define EN_PIN 48 // Nano v3: 16 Mega: 38 //enable (CFG6) | |
| #define DIR_PIN 16 // 19 55 //direction | |
| #define STEP_PIN 17 // 18 54 //step | |
| #define CS_PIN 31 // 17 64 //chip select | |
| #define MOSI_PIN 51 |
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
| " Tony's Settings | |
| " Usage: | |
| " Download and install nvim, then install 'dein' the vim-package manager. | |
| " During installation of dein it will output a sample configuration, take the | |
| " two lines that `set runtimepath=PATH` and `dein#begin(PATH)` and replace the | |
| " ones in this file online 14 and 17. Restart nvim and Happy Vimming! | |
| "dein Scripts----------------------------- | |
| if &compatible | |
| set nocompatible " Be iMproved |
UPDATE: This is a work in progress document, please disregard all spelling-errors and outdated info.
I'm a linux user, and by accident a tablet with window 10 home edition came into my possesion.
And I was not prepared for the shock that is windows 10, they have successfully reminted the term "Rightless Slave" into the term "User".
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
| var guid = function(){ | |
| return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) { | |
| var r = Math.random()*16|0, v = c == 'x' ? r : (r&0x3|0x8); | |
| return v.toString(16); | |
| }); | |
| }; |
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
| <!DOCTYPE html> | |
| <html ng-app="app"> | |
| <head> | |
| <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-rc.3/angular.min.js"></script> | |
| <script type="text/javascript"> | |
| var app = angular.module('app',['ng']); | |
| app.controller('MainCtrl', function($scope){ | |
| }); |
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
| PATH | |
| remote: ../tumblargh | |
| specs: | |
| tumblargh (0.2.2) | |
| activesupport (>= 3.1) | |
| api_cache | |
| nokogiri | |
| treetop | |
| GEM |
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
| float accumlatedTime=0; | |
| Sprite cow; | |
| float runSpeed = 1; # in pixels per second | |
| float fallingAccelleration = 0.3; # how fast the fall should reach topspeed plummeting. | |
| float maxFallVelocity = 3.0; # Should not be able to fall faster than 3px/s | |
| onFrame(float deltaTime): | |
| accumulatedTime + = deltaTime; | |
| # Timestamp when a jump reached it's peak height and you're scheduled with a romantic date with gravity. |
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(window,PIXI){ | |
| var regenerateCache = function(tilemap){ | |
| var tileset = tilemap.tileset; | |
| tilemap.cache = {}; // empty cache. | |
| var x=tileset.margin,y=tileset.margin,row=0,col=0; | |
| var id= 0; | |
| while(tileset.margin+row*tileset.spacing+y+tileset.tileheight <=tileset.imageheight){ | |
| x=tileset.margin,col=0; | |
| while(tileset.margin+col*tileset.spacing+x+tileset.tilewidth <= tileset.imagewidth){ | |
| var bounds = { |