Skip to content

Instantly share code, notes, and snippets.

View hissy's full-sized avatar
💭
😄

Takuro Hishikawa hissy

💭
😄
View GitHub Profile
@dergachev
dergachev / GIF-Screencast-OSX.md
Last active April 20, 2025 21:14
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@pimpmywp
pimpmywp / class-pm-schedule-post.php
Created December 29, 2012 08:21
[WordPress] 記事の公開開始日時・公開終了日時をカスタムフィールドで個別/同時に指定する
<?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;
@keijiro
keijiro / curl-ftp-tls-ssl.md
Created November 5, 2012 07:04
curl で FTP over TLS/SSL なサーバーへアクセスする

たまにセキュリティの都合上云々で 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
@kasparsd
kasparsd / wordpress-plugin-svn-to-git.md
Last active November 25, 2024 14:56
Using Git with Subversion Mirroring for WordPress Plugin Development
@ounziw
ounziw / gist:3730738
Created September 16, 2012 01:57
debugging translation for concrete5.6
<?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;
}
@Gab-km
Gab-km / github-flow.ja.md
Last active April 23, 2025 04:19 — forked from juno/github-flow.ja.md
GitHub Flow (Japanese translation)
@wokamoto
wokamoto / replace-siteurl.php
Created September 4, 2012 23:22
WordPress のDB上のサイトURLを一気に変換
#!/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];
@karlhorky
karlhorky / grayscale-disable.css
Created August 26, 2012 12:17
Cross-Browser CSS Grayscale
img.grayscale.disabled {
filter: url("data:image/svg+xml;utf8,&lt;svg xmlns=\'http://www.w3.org/2000/svg\'&gt;&lt;filter id=\'grayscale\'&gt;&lt;feColorMatrix type=\'matrix\' values=\'1 0 0 0 0, 0 1 0 0 0, 0 0 1 0 0, 0 0 0 1 0\'/&gt;&lt;/filter&gt;&lt;/svg&gt;#grayscale");
-webkit-filter: grayscale(0%);
}
fizz = function f() {
fizz = function () {
fizz = function () {
fizz = f
return "Fizz"
}
}
}
buzz = function f() {
@miya0001
miya0001 / gist:3065723
Created July 7, 2012 10:06
facebookのlike boxを横幅100%で指定してレスポンシブデザインに対応。
.fbcomments,
.fb_iframe_widget,
.fb_iframe_widget[style],
.fb_iframe_widget iframe[style],
.fbcomments iframe[style],
.fb_iframe_widget span{
width: 100%! important;
}