Models | Examples |
---|---|
Display ads | Yahoo! |
Search ads |
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
Homebrew is the way of the future.. | |
1. Save list of installed ports | |
2. Uninstall macports | |
3. Install Homebrew | |
4. Install old ports using brew | |
1. Save list of installed ports | |
---------------------------- | |
1. port installed > ports_installed.txt |
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
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 Mathieu 'p01' Henri - http://www.p01.org/releases/ | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
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
package DB; | |
use Moose; | |
sub create { | |
use Data::Dump qw(pp); print STDERR ">>>>>> ", pp(@_), "\n"; | |
} | |
package Role; |
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
# compiled by Tom Christiansen | |
v1.0 \0, \0N,\0NN Match octal character up to octal 077. | |
v1.0 \N, \NN, \NNN Match Nth capture group (decimal) if not in charclass and that many seen, else (octal) character up to octal 377. | |
v4.0 \a Match the alert character (ALERT, BEL). | |
v5.0 \A True at the beginning of a string only, not in charclass. | |
v1.0 \b Match the backspace char (BACKSPACE, BS) in charclass only. | |
v1.0 \b True at Unicode word boundary, outside of charclass only. | |
v1.0 \B True when not at Unicode word boundary, not in charclass. | |
v4.0 \cX Match ASCII control character Control-X (\cZ, \c[, \c?, etc). | |
v5.6 \C Match one byte (C char) even in UTF‑8 (dangerous!), not in charclass. |
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
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use Carp qw(cluck); | |
use autodie ':all'; | |
use Getopt::Long 2.33 qw(:config auto_help); | |
use File::Find::Rule; | |
use File::Basename 'basename'; |
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
Latency Comparison Numbers (~2012) | |
---------------------------------- | |
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns 3 us | |
Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
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
<!-- standard viewport tag to set the viewport to the device's width | |
, Android 2.3 devices need this so 100% width works properly and | |
doesn't allow children to blow up the viewport width--> | |
<meta name="viewport" id="vp" content="initial-scale=1.0,user-scalable=no,maximum-scale=1,width=device-width" /> | |
<!-- width=device-width causes the iPhone 5 to letterbox the app, so | |
we want to exclude it for iPhone 5 to allow full screen apps --> | |
<meta name="viewport" id="vp" content="initial-scale=1.0,user-scalable=no,maximum-scale=1" media="(device-height: 568px)" /> | |
<!-- provide the splash screens for iPhone 5 and previous --> | |
<link href="assets/splashs/splash_1096.png" rel="apple-touch-startup-image" media="(device-height: 568px)"> | |
<link href="assets/splashs/splash_iphone_2x.png" rel="apple-touch-startup-image" sizes="640x960" media="(device-height: 480px)"> |
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 OSX keyboard layout switching is a pain. | |
Using a keyboard layout different than the one actually printed on | |
your keys is also weird. The following keyboard shortcuts allow you | |
to create the various diacritics used in languages like Portuguese | |
on the British/US layout of a Mac keyboard. | |
Alt+e -> ´ Examples: é ó á | |
Alt+i -> ^ Examples: â ê | |
Alt+c -> ç |
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
package Prj::Setup::Class; | |
use Prj::Setup::Perl; | |
use Moose (); | |
use MooseX::HasDefaults::RO (); | |
use MooseX::StrictConstructor (); | |
use MooseX::AttributeShortcuts (); | |
use Method::Signatures::Simple (); | |
use Try::Tiny (); | |
use Moose::Exporter; |
OlderNewer