Skip to content

Instantly share code, notes, and snippets.

View Pafuxu's full-sized avatar

Kouji Tsuru Pafuxu

View GitHub Profile
@bomberstudios
bomberstudios / sketch-plugins.md
Last active February 26, 2024 07:02
A list of Sketch plugins hosted at GitHub, in no particular order.
@hissy
hissy / gist:5289647
Last active December 15, 2015 16:29
#WordPress Twenty Twelve のタイトルフィルタリングを子テーマから変更、あるいはキャンセルする
<?php
/*
* Twenty Twelve の wp_title のフィルタリングを改変する
* Ref: http://wordpress.org/support/topic/overriding-twentytwelve_wp_title-in-a-child-theme
*/
function my_wp_title( $title, $sep ) {
global $paged, $page;
// 好きな処理
return $title;
@mynameispj
mynameispj / Compass px to em
Created March 10, 2013 22:29 — forked from ijy/Compass px to em
Modified for SASS syntax...
@function em($target, $context: $base-font-size)
@if $target == 0
@return 0
@return $target / $context + 0em
$base-font-size: 16px
@dustinhorton
dustinhorton / sass-px-to-em-function.scss
Created February 19, 2013 03:32
Blackbelt Blog Gists - Converting PX To EM Units
@function em ($px, $font-size: $font-size) {
@return ($px / $font-size) * 1em;
}
@chmurph2
chmurph2 / copyURLPlusSafari.scpt
Created February 26, 2009 01:12
In Safari, this applescript copies the title and URL of the current tab to the clipboard.
-- In Safari, this copies the Title and URL of the current tab to the clipboard.
-- Save the script in ~/Library/Scripts/Applications/Safari
-- Using QuickSilver, I assign a trigger to this script using the hotkey ⌥-C (option c), with the scope of the trigger limited to Safari.
-- Inspired by CopyURL + (http://copyurlplus.mozdev.org/)
-- Christopher R. Murphy
tell application "Safari"
set theURL to URL of front document
set theTitle to name of front document
set the clipboard to theTitle & return & theURL as string