Only use ===
php -r 'var_dump( "A box of spanners" == 0 ); var_dump( "A box of spanners" == true ); var_dump( 0 == true );'
bool(true) bool(true) bool(false)
case "casestudy": | |
$meta = getmeta($info->id, 'casestudy'); | |
$title = $meta->meta_title; | |
$link = "casestudy/".$info->url; | |
$backtrace .= ' > <a href="/casestudies-hub/">Case Studies</a>'; | |
break; | |
case "faq": | |
$title = $info->question; | |
$link = "faq/"; |
☁ ~ brew install mkvtoolnix | |
==> Downloading http://www.bunkus.org/videotools/mkvtoolnix/sources/mkvtoolnix-5.0.1.tar.bz2 | |
File already downloaded in /Volumes/Swap/JT/Library/Caches/Homebrew | |
==> ./configure --disable-debug --prefix=/usr/local/Cellar/mkvtoolnix/5.0.1 --with-boost-libdir=/usr/local/lib --with-boost-regex=boost_regex-mt | |
==> ./drake -j8 | |
(in /private/tmp/homebrew-mkvtoolnix-5.0.1-izFU/mkvtoolnix-5.0.1) | |
CXX src/common/common.h | |
GREP doc/guide/en/mkvmerge-gui.hhc | |
GREP doc/guide/zh_CN/mkvmerge-gui.hhc | |
CXX src/merge/cluster_helper.cpp |
(in /private/tmp/homebrew-mkvtoolnix-5.0.1-rklj/mkvtoolnix-5.0.1) | |
CXX src/common/common.h | |
CXX lib/libmatroska/src/FileKax.cpp | |
CXX lib/libmatroska/src/KaxAttached.cpp | |
CXX lib/libmatroska/src/KaxAttachments.cpp | |
CXX lib/libmatroska/src/KaxBlock.cpp | |
CXX lib/libmatroska/src/KaxBlockData.cpp | |
CXX lib/libmatroska/src/KaxCluster.cpp | |
CXX lib/libmatroska/src/KaxContexts.cpp | |
CXX lib/libmatroska/src/KaxCues.cpp |
<?php | |
/** | |
* Simple XSRF protection. | |
*/ | |
class Session_Key { | |
/** | |
* constants, USER and FORM are used to identify session data, USER, FORM and FORMID are used as | |
* input names so validation is encapsulated easily | |
*/ | |
const USER = 'SESSIONKEY_USERKEY'; |
// config | |
$grid-width: 80px; | |
$grid-margin: 14px; | |
$grid-margins: $grid-margin * 2; | |
$grid-padding: $grid-margin; | |
$grid-paddings: $grid-padding * 2; | |
$grid-home-gutter: 4px; | |
$grid-home-height: 232px; | |
$grid-home-background: #4e8496; |
☁ ~ brew install fuse4x | |
==> Cloning https://github.com/fuse4x/fuse.git | |
Updating /Volumes/Swap/JT/Library/Caches/Homebrew/fuse4x--git | |
==> Checking out tag fuse4x_0_8_14 | |
==> /usr/bin/autoreconf --force --install | |
==> Exit Status: 1 | |
http://github.com/mxcl/homebrew/blob/master/Library/Formula/fuse4x.rb#L20 | |
==> Environment | |
HOMEBREW_VERSION: 0.8.1 |
☁ ~ brew install fuse4x | |
==> Cloning https://github.com/fuse4x/fuse.git | |
Updating /Volumes/Swap/JT/Library/Caches/Homebrew/fuse4x--git | |
==> Checking out tag fuse4x_0_8_14 | |
==> autoreconf --force --install | |
configure.in:7: error: possibly undefined macro: AC_PROG_LIBTOOL | |
If this token and others are legitimate, please use m4_pattern_allow. | |
See the Autoconf documentation. | |
autoreconf: /usr/local/Cellar/autoconf/2.68/bin/autoconf failed with exit status: 1 | |
==> Exit Status: 1 |
<?php | |
class Hex_Rows_Responsive_Breaks { | |
/** | |
* key: modulus for row breaks | |
* value = array of classes where key is "break" for the break and "pad" for the pad, for example: | |
* | |
array( | |
7 => array( | |
'break' => 'mq-mid mq-small', | |
'pad' => 'mq-mid-i-block mq-small-i-block' |
#!/usr/bin/env ruby | |
require "net/imap" | |
imap = Net::IMAP.new('imap.googlemail.com', port: 993, ssl: true) | |
imap.login('EMAIL', 'PASSWORD') | |
imap.examine('Sites') | |
results = imap.search(["SINCE" , "1-Jul-2012", "BODY" , "Discounts", "SUBJECT" , "buffalosite:trendygolf:email"]) | |
puts "results: #{results.length}" |
Only use ===
php -r 'var_dump( "A box of spanners" == 0 ); var_dump( "A box of spanners" == true ); var_dump( 0 == true );'
bool(true) bool(true) bool(false)