Skip to content

Instantly share code, notes, and snippets.

@takuma7
takuma7 / ps-grid-generator.jsx
Created November 6, 2012 06:43 — forked from jameswburke/ps-grid-generator.jsx
Photoshop Script - Generate Grid Guides
//Modified version of sprite-grid.jsx by Filip Van Tendeloo
//Fixed for earlier versions of Photoshop based on guideLine function from
//http://www.ps-scripts.com/bb/viewtopic.php?f=9&t=3493&start=0
//None of this code is mine
// check for document
if(app.documents.length > 0){
// get active document
var psDoc = app.activeDocument;
@takuma7
takuma7 / gist:9616189
Last active October 1, 2018 01:09 — forked from jimbojsb/gist:1630790
Keynoteにシンタックスハイライトされたソースコードをはりつける方法

Step 0:

MacにHomebrewが入っていない場合はインストールする

Step 1:

highlightをインストールする

brew install highlight
#!/usr/bin/env ruby
#
# Convert blogger (blogspot) posts to jekyll posts
#
# Basic Usage
# -----------
#
# ./blogger_to_jekyll.rb feed_url
#
# where `feed_url` can have the following format:
@takuma7
takuma7 / pagination.ctp
Created August 28, 2012 02:53 — forked from slywalker/pagination.ctp
pagination element for CakePHP on twitter bootstrap
<div class="pagination">
<ul>
<?php
echo $this->Paginator->prev('«',
array(
'tag' => 'li',
'class' => 'prev',
),
$this->Paginator->link('«', array()),
array(
@takuma7
takuma7 / 0_reuse_code.js
Last active August 29, 2015 14:06
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console