- Python 3
- Pip 3
$ brew install python3
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>DatePicker Example</title> | |
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css"> | |
<script src="//code.jquery.com/jquery-1.10.2.js"></script> | |
<script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script> | |
<script> |
This is how you connect PS3 controller to Mac OSX, PC, etc. when previously connected to a PS3. You will need a Mini USB cable. Overcome your laziness, get up of your chair, and go get one!
A big misconception is that keep holding PS button will reset the controller's pairing. It DOES NOT! From my testings, the controller keeps paring with the last machine it was CONNECTED VIA A USB CABLE.
Here are the steps:
// this chunk of code loads a jpeg image into a cgimage | |
// creates a second crop of the original image with CGImageCreateWithImageInRect | |
// writes the new cropped image to the desktop | |
// ensure that the xy origin of the CGRectMake call is smaller than the width or height of the original image | |
NSURL *originalImage = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"lockwood" ofType:@"jpg"]]; | |
CGImageRef imageRef = NULL; | |
CGImageSourceRef loadRef = CGImageSourceCreateWithURL((CFURLRef)originalImage, NULL); | |
if (loadRef != NULL) |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
TokenTesting(); | |
} | |
private static void TokenTesting() | |
{ | |
// create a private key to use in our tests. |
#!/usr/bin/env python | |
# encoding: utf-8 | |
import sys, os, getopt | |
from django.core.management import setup_environ | |
import settings | |
setup_environ(settings) | |
from django.db.models import Q |