This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
<?php | |
if ( ! class_exists( 'PM_Schedule_Post' ) ) { | |
class PM_Schedule_Post { | |
protected $from = ''; | |
protected $to = ''; | |
protected $label = ''; | |
public function __construct( $from, $to, $label = 'expired' ) { | |
$this->from = $from; | |
$this->to = $to; |
たまにセキュリティの都合上云々で FTP over TLS/SSL を使わざるを得ない状況に追い込まれることがあります。そういったレアな状況のためにわざわざ特殊な FTP クライアントをインストールするのは面倒です。こういった時に curl を使うと大変楽です(curl ぐらいは入れておきましょう)。
こんな感じにします。
curl -u username:password --ftp-ssl ftp://example.com
ファイルを取得するときには、こんな感じで出力ファイルを指定します。
curl -u username:password --ftp-ssl -o filename ftp://example.com/filename
Update: please note that I have since switched to using a set of bash scripts instead of poluting the Git repository with git svn
.
Author: Kaspars Dambis
kaspars.net / @konstruktors
<?php | |
defined('C5_EXECUTE') or die("Access Denied."); | |
// Put this file into concrete/startup/localization.php | |
function remove_percent_from_text($text) { | |
$removed = array('$','%'); | |
$no_var_text = str_replace($removed,'_',$text); | |
$no_var_text .= ' '; // Space for Readability | |
return $no_var_text; | |
} |
#!/usr/bin/php | |
<?php | |
switch($argc) { | |
case 1: | |
case 2: | |
echo "please input new site url and wp directory name!\n"; | |
exit(); | |
default: | |
$old_site = isset($argv[3]) ? $argv[3] : ''; | |
$path = $argv[2]; |
img.grayscale.disabled { | |
filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'1 0 0 0 0, 0 1 0 0 0, 0 0 1 0 0, 0 0 0 1 0\'/></filter></svg>#grayscale"); | |
-webkit-filter: grayscale(0%); | |
} |
fizz = function f() { | |
fizz = function () { | |
fizz = function () { | |
fizz = f | |
return "Fizz" | |
} | |
} | |
} | |
buzz = function f() { |
.fbcomments, | |
.fb_iframe_widget, | |
.fb_iframe_widget[style], | |
.fb_iframe_widget iframe[style], | |
.fbcomments iframe[style], | |
.fb_iframe_widget span{ | |
width: 100%! important; | |
} | |