Skip to content

Instantly share code, notes, and snippets.

View Nek's full-sized avatar
🏠
Working from home

Nikita Dudnik Nek

🏠
Working from home
View GitHub Profile
@statico
statico / gist:3172711
Created July 24, 2012 21:15
How to use a PS3 controller on Mac OS X 10.7 (Lion)

How to use a PS3 controller on Mac OS X 10.7 (Lion)

  1. Open Apple menu -> System Preferences -> Bluetooth and disable Bluetooth on Mac as well as any other nearby Macs or devices which will try to pair with and confuse the controller.

  2. Reset PS3 controller by inserting paperclip into pinhole near L2 button.

  3. Connect PS3 controller to Mac with USB cable.

  4. Enable Bluetooth.

@jgranick
jgranick / gist:1763850
Created February 8, 2012 01:05
NMML File Specification
<?xml version="1.0" encoding="utf-8"?>
<project>
<!-- <meta />
Use meta nodes to set metadata for your application. The description is ignored
on most targets, but is useful for packaging like Chrome Apps or Opera Widgets.
For compatibility with Android and webOS, the package name must include at least
@tokumine
tokumine / ubuntu_laptop.md
Created January 9, 2012 23:33
Best Ubuntu laptop?

Weirdly, there's not an awful lot of information on what makes a light, fast and modern Linux laptop on the internet, even for a popular distribution like Ubuntu. I like to run Ubuntu as, for better or worse, it's what we use on our production systems.

Normally with linux laptops, you run the gauntlet of esoteric specialist hardware matched up with shaky drivers - a sure fire recipe for burning a weekend (or few weeks even). It's such drudgery to have to plod through all this stuff. I need a decent laptop that I can install Ubuntu on and for everything to just work.

By everything, I mean all of it - wireless (b/g/n), gigabit ethernet, battery indicator, cpu stepping, VGA port/dongle, bluetooth, HDMI port, sleep, SD card reader, camera, microphone, usb, multitouch (especially two-finger scroll) and special laptop keys like brightness and volume. I wanted as near to zero config as possible with good default choices.

I decided to take an educated guess on such a linux laptop recently: the Samsung 350U (speci

@soemarko
soemarko / theme.html
Created November 26, 2011 16:18
embed github gist to tumblr
<!-- Add the following lines to theme's html code right before </head> -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script>
<script src="http://static.tumblr.com/fpifyru/VCxlv9xwi/writecapture.js"></script>
<script src="http://static.tumblr.com/fpifyru/AKFlv9zdu/embedgist.js"></script>
<!--
Usage: just add <div class="gist">[gist URL]</div>
Example: <div class="gist">https://gist.github.com/1395926</div>
-->
@joelnet
joelnet / example.html
Created June 3, 2011 18:03
Unobtrusive Knockout support library for jQuery
Choose a ticket class: <select id="tickets"></select>
<p id="ticketOutput"></p>
<script id="ticketTemplate" type="text/x-jquery-tmpl">
{{if chosenTicket}}
You have chosen <b>${ chosenTicket().name }</b>
($${ chosenTicket().price })
<button data-bind="click: resetTicket">Clear</button>
{{/if}}