Skip to content

Instantly share code, notes, and snippets.

View paultnylund's full-sized avatar
🖤
Back at Work

Paul Nylund paultnylund

🖤
Back at Work
View GitHub Profile
@mhuggins
mhuggins / README.md
Last active June 11, 2021 09:59
Snake.js

Simple snake game in JS.

Unfinished features & unaddressed issues:

  • No collision detection (no win/loss)
  • Pressing two directions in quick succession allows the snake to reverse direction on itself. (This is an issue with the FPS limiting vs. event-driven key handling.)
  • Food can spawn on top of the snake.
@robertsdionne
robertsdionne / deepdream-install.md
Last active February 15, 2021 16:07
Deepdream installation
#!/usr/bin/env bash

# Assuming OS X Yosemite 10.10.4

# Install XCode and command line tools
# See https://itunes.apple.com/us/app/xcode/id497799835?mt=12#
# See https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/xcode-select.1.html
xcode-select --install
@ArtSabintsev
ArtSabintsev / Create iOS Icons.jsx
Last active December 24, 2015 22:19 — forked from twonjosh/Create iOS Icons.jsx
Create iOS App icons for iOS 4, 5, 6, 7, & 8
// Photoshop Script to Create iPhone Icons from iTunesArtwork
//
// WARNING!!! In the rare case that there are name collisions, this script will
// overwrite (delete perminently) files in the same folder in which the selected
// iTunesArtwork file is located. Therefore, to be safe, before running the
// script, it's best to make sure the selected iTuensArtwork file is the only
// file in its containing folder.
//
// Copyright (c) 2010 Matt Di Pasquale
// Added tweaks Copyright (c) 2012 by Josh Jones http://www.appsbynight.com
@dergachev
dergachev / GIF-Screencast-OSX.md
Last active June 5, 2024 22:16
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@hdznrrd
hdznrrd / gist:656996
Created October 31, 2010 19:03
HSV to RGB (Arduino)
void HSV_to_RGB(float h, float s, float v, byte *r, byte *g, byte *b)
{
int i,f,p,q,t;
h = max(0.0, min(360.0, h));
s = max(0.0, min(100.0, s));
v = max(0.0, min(100.0, v));
s /= 100;
v /= 100;
CmdUtils.CreateCommand({
name: 'google bookmark example?',
description: '?',
preview: function gbe_preview(pb){
pb.innerHTML = '...';
CmdUtils.previewAjax(pb, {
url: 'http://www.google.com/bookmarks/?output=xml',
dataType: 'text',
success: function gbe_success(xml){
var {bookmarks} = XML(xml.replace(/<\?[^>]*>/, ''));