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 | |
/** | |
* Assert that a given where condition does not matches a soft deleted record | |
* | |
* @param string $table | |
* @param array $data | |
* @param string $connection | |
* @return $this | |
*/ | |
protected function seeIsNotSoftDeletedInDatabase($table, array $data, $connection = null) |
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
body { | |
color: #ccc; | |
background: #525252 url("/assets/img/cloud-bar.png") repeat-x; | |
} | |
.docs article code[class*="language-"], | |
.docs article pre[class*="language-"] { | |
font-size: 14px; | |
} |
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
#!/bin/sh | |
aptitude install checkinstall build-essential | |
wget -N http://nodejs.org/dist/node-latest.tar.gz | |
tar xzvf node-latest.tar.gz | |
cd `ls -1|sort -r|head -1` | |
./configure | |
sudo fakeroot checkinstall -y --install=no --pkgversion $(echo $(pwd) | sed -n -re's/.+node-v(.+)$/\1/p') make -j$(($(nproc)+1)) install | |
sudo dpkg -i node_* |
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 | |
Route::filter('revisit', function() { | |
if (Cookie::get('landingpage')) { | |
return Redirect::to('/' . Cookie::get('landingpage')); | |
} | |
}); |
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 | |
class Question extends Eloquent { | |
public function getAnswerAttribute($value) | |
{ | |
return (bool)$value; | |
} | |
} |
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
document.documentElement.style.overflow = document.getElementsByTagName('body')[0].style.overflow = 'hidden'; | |
document.getElementById('player-api').style.width = '1280px'; | |
document.getElementById('player-api').style.height = '751px'; | |
document.getElementById('player').style.padding = '0px'; |
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
.share-button .icon { | |
width: 16px; | |
height: 16px; | |
vertical-align: top; | |
margin: 0 5px 0 -5px; | |
@include inlineblock; | |
background-image: url(../images/m/social-share.png); | |
&.twitter { | |
background-position: -18px 0; | |
} |
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
> cat ~/.gitignore_global develop [3e3d5e4] | |
# OS generated files # | |
###################### | |
.DS_Store | |
.DS_Store? | |
._* | |
.Spotlight-V100 | |
.Trashes | |
Icon? | |
ehthumbs.db |
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
> cat ~/.gitignore_global develop [3e3d5e4] | |
# OS generated files # | |
###################### | |
.DS_Store | |
.DS_Store? | |
._* | |
.Spotlight-V100 | |
.Trashes | |
Icon? | |
ehthumbs.db |
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
SELECT [0], | |
h.id, | |
m.date + 978307020000, | |
CASE m.is_from_me | |
WHEN 0 THEN 1 | |
WHEN 1 THEN 2 | |
END AS type, | |
NULL, | |
m.text, | |
NULL, |
NewerOlder