-
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.
-
Reset PS3 controller by inserting paperclip into pinhole near L2 button.
-
Connect PS3 controller to Mac with USB cable.
-
Enable Bluetooth.
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 following in .bashrc / .bash_profile / .zshrc | |
# usage | |
# $ mkvenv myvirtualenv # creates venv under ~/.venv/ | |
# $ venv myvirtualenv # activates venv | |
# $ deactivate # deactivates venv | |
# $ rmvenv myvirtualenv # removes venv | |
export VENV_HOME="$HOME/.venv" | |
[[ -d $VENV_HOME ]] || mkdir $VENV_HOME |
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
<?php | |
/** | |
* To start, run: | |
* composer require guzzlehttp/guzzle | |
* Then: | |
* php babyql.php | |
*/ | |
require 'vendor/autoload.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
# Mac OS X | |
*.DS_Store | |
# Xcode | |
*.pbxuser | |
*.mode1v3 | |
*.mode2v3 | |
*.perspectivev3 | |
*.xcuserstate | |
project.xcworkspace/ |
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 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
{% for post in site.posts limit:5 %} | |
<div class="box"> | |
<h3>{{post.title}}</h3> | |
<div class="clearfix"></div> | |
<div class="right big"> | |
{% assign breakIndex = -1 %} | |
{% for element in post.content %} | |
{% if element contains '<!--more-->' %} | |
{% assign breakIndex = forloop.index %} | |
{% endif %} |
In this document I am using Sass's SCSS syntax. You can choose to use the indented syntax in sass, if you prefer it, it has no functional differences from the SCSS syntax.
For Less, I'm using the JavaScript version because this is what they suggest on the website. The ruby version may be different.
Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)
That's it!
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 'open-uri' | |
require 'hpricot' | |
user, project = ARGV # 'tobi', 'liquid' | |
fail "get-github-wiki <username> <projectname>" unless user and project | |
uri = "http://wiki.github.com/#{user}/#{project}" | |
xpath = "div.sidebar/ul[1]//a" | |
command = %w[wget -t 2 -mkc --no-parent] |
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
/* SDLMain.m - main entry point for our Cocoa-ized SDL app | |
Initial Version: Darrell Walisser <dwaliss1@purdue.edu> | |
Non-NIB-Code & other changes: Max Horn <max@quendi.de> | |
Feel free to customize this file to suit your needs | |
*/ | |
#ifndef _SDLMain_h_ | |
#define _SDLMain_h_ |
NewerOlder