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
ffmpeg -r 25 -qscale 2 -i DSCN%04d.JPG output.mp4 |
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
"scripts": { | |
"post-install-cmd": [ | |
... | |
"curl https://raw.githubusercontent.com/VladShcherbin/whoops-orange-laravel-colors/master/whoops.base.css > vendor/filp/whoops/src/Whoops/Resources/css/whoops.base.css" | |
], | |
"post-update-cmd": [ | |
... | |
"curl https://raw.githubusercontent.com/VladShcherbin/whoops-orange-laravel-colors/master/whoops.base.css > vendor/filp/whoops/src/Whoops/Resources/css/whoops.base.css" | |
] | |
} |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Ansi 0 Color</key> | |
<dict> | |
<key>Blue Component</key> | |
<real>0.24594299495220184</real> | |
<key>Green Component</key> | |
<real>0.18407571315765381</real> |
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 | |
use Illuminate\Database\Schema\Blueprint; | |
use Illuminate\Database\Migrations\Migration; | |
class CreateCategoriesTableWithI18n extends Migration { | |
/** | |
* Run the migrations. | |
* |
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
var timeout, callback; | |
callback = function(event) { | |
console.log("Hey!"); | |
} | |
button.addEventListener('click', function(event) { | |
clearTimeout(timeout); | |
timeout = setTimeout(function() { | |
callback(event); |
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 | |
function strip_string($str, $case) { | |
switch ($case) { | |
case "az": return preg_replace("/[^a-zA-Z]+/", "", $str); | |
case "num": return preg_replace("/[^0-9]+/", "", $str); | |
case "num+az": default: return preg_replace("/[^a-zA-Z0-9]+/", "", $str); | |
} | |
} | |
?> |
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 | |
function is_valid_email($s) { | |
return preg_match('/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$/', $s); | |
} | |
function is_valid_username($s) { | |
return preg_match('/^[A-Za-z0-9-_]+$/', $s); | |
} | |
?> |
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 | |
function substr_count_array($haystack, $needle) { | |
$count = 0; | |
$haystack = strtolower($haystack); | |
foreach ($needle as $substring) { | |
$count += substr_count($haystack, strtolower($substring)); | |
} | |
return $count; | |
} | |
?> |
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
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /controller.php [L] |
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 | |
/* Sort 2D Arrays | |
* | |
* Example: | |
* $user_array = Array( | |
* Array("id" => 521, "name" => "Aboriginal Anemia"), | |
* Array("id" => 281, "name" => "Chemical Crap"), | |
* Array("id" => 596, "name" => "Bloody Baphomet") | |
* ); |
OlderNewer