MacにHomebrewが入っていない場合はインストールする
highlightをインストールする
brew install highlight
| //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; |
| PImage markers = loadImage("AllBchThinMarkers.png"); | |
| int w = 12, h = 12; | |
| int w_m = 8, h_m = 8; | |
| int r_num = 64; | |
| int c_num = 64; | |
| int id = 0; | |
| for (int ky = 0; ky < c_num * h; ky += h) { | |
| for (int kx = 0; kx < r_num * w; kx += w) { | |
| PImage marker = createImage(w_m, h_m, RGB); | |
| for (int y = ky + h - h_m, _y = 0; y < ky + h; y++, _y++) { |
| # SQLite version 3.x | |
| # gem install sqlite3 | |
| # | |
| # Ensure the SQLite 3 gem is defined in your Gemfile | |
| # gem 'sqlite3' | |
| development: | |
| adapter: mysql2 | |
| encoding: utf8 | |
| reconnect: false | |
| database: ut-addventure_development |
| #!/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: |
| # coding: utf8 | |
| print [x for x in range(1900, 2201) if x%4 == 0 and x%100 != 0 or x%400 == 0] |
| # coding: utf8 | |
| def isLeapYear(x): | |
| return x%4 == 0 and x%100 != 0 or x%400 == 0 |
| # coding: utf8 | |
| import a2 | |
| import csv | |
| reader = csv.DictReader(open("evaluation-values.csv")) | |
| leapAvg = 0 | |
| leapNum = 0 | |
| nonLeapAvg = 0 |
MacにHomebrewが入っていない場合はインストールする
highlightをインストールする
brew install highlight
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| puts "Hello World" |