Skip to content

Instantly share code, notes, and snippets.

View ngs's full-sized avatar
🎣
Fly Fishing

Atsushi NAGASE ngs

🎣
Fly Fishing
View GitHub Profile
@ngs
ngs / install.sh
Last active December 15, 2021 16:59 — forked from lwickline/gist:8c061def750833c544034a66199dc23f
Install vim 8 on a Raspberry Pi 3
# Modified from the gist @https://gist.github.com/odiumediae/3b22d09b62e9acb7788baf6fdbb77cf8
sudo apt-get remove -y --purge vim vim-runtime vim-gnome vim-tiny vim-gui-common
sudo apt-get install -y liblua5.1-dev luajit libluajit-5.1 python-dev ruby-dev libperl-dev libncurses5-dev libatk1.0-dev libx11-dev libxpm-dev libxt-dev
#Optional: so vim can be uninstalled again via `dpkg -r vim`
sudo apt-get install -y checkinstall
sudo rm -rf /usr/local/share/vim /usr/bin/vim
#!/bin/bash
base_dir=`pwd`
curl -Lo mecab-0.996.tar.gz 'https://drive.google.com/uc?export=download&id=0B4y35FiV1wh7cENtOXlicTFaRUE'
tar zxfv mecab-0.996.tar.gz
cd mecab-0.996
./configure --enable-utf8-only
make
make check
@ngs
ngs / aitter.js
Last active August 29, 2015 14:06 — forked from moroya/aitter.js
(function(){
var total = {};
var year = '2012';
var all = false;
function init(num) {
if(typeof num !== 'number') {
num = 0;
$('<div/>').css({
position: 'fixed',
left: 0,
@ngs
ngs / .travis.yml
Last active December 15, 2021 17:01 — forked from kishikawakatsumi/.travis.yml
language: objective-c
cache:
directories:
- vendor/bundle
- Pods
install:
- bundle install --path=vendor/bundle --binstubs=vendor/bin
- bundle exec pod install
script:
- '[ ! -z $(echo ${TRAVIS_BRANCH} | grep "^release.*$") ] && CONFIG=release || CONFIG=adhoc'
@ngs
ngs / Rakefile
Last active August 29, 2015 14:06 — forked from kishikawakatsumi/Rakefile
require "rubygems/version"
require "rake/clean"
require "date"
# Application info
APP_NAME = "Ubiregi2"
SDK = "iphoneos"
WORKSPACE = File.expand_path("#{APP_NAME}.xcworkspace")
SCHEME = "#{APP_NAME}-Release"
INFO_PLIST = File.expand_path("#{APP_NAME}/#{APP_NAME}-Info.plist")
@charset "utf-8";
body {
background: #222;
}
body, table, form, input, td, th, p, textarea, select {
font-family: Helvetica, sans-serif;
color: #0d0;
}
@ngs
ngs / gist:4011900
Created November 4, 2012 13:27 — forked from CodeIQ/gist:3863315
Find Memory Leaks
//
// MemoryLeakTestTableViewController.m
// MemoryLeakTest
@interface MemoryLeakTestTableViewController : UITableViewController
{
NSMutableArray *dataForCellArray1;
}
@property (retain, nonatomic) NSMutableArray *dataForCellArray2;
@property (retain, nonatomic) NSMutableArray *dataForCellArray3;
@ngs
ngs / RunPlatformUnitTests.sh
Created June 16, 2012 03:06 — forked from sgleadow/RunPlatformUnitTests.sh
Modified shell script to run OCUnit and Kiwi tests on the command line.
#!/bin/sh
##
# Copyright 2008 Apple Inc.
# All rights reserved.
#
# iPhoneSimulator platform
# This script runs all of the unit tests for the target test bundle specified by the passed-in environment.
# This script is generally intended to be invoked by ${DEVELOPER_TOOLS_DIR}/RunUnitTests. The interface or location of this script may change in future releases.
##
#
@ngs
ngs / link_header.py
Created May 31, 2012 19:25 — forked from mnot/link_header.py
link_header.py: HTTP Link header parsing
@ngs
ngs / Create Mac Icons.jsx
Created May 22, 2012 23:26 — forked from ma11hew28/Create Icons.jsx
Photoshop Script to Create iPhone Icons from iTunesArtwork
/** @see http://bit.ly/VTacev */
// Turn debugger on. 0 is off.
// $.level = 1;
var OUTPUT_FOLDER_NAME = "icons"
, icons = [
["icon_32x32", 16],
["icon_32x32", 32],
["icon_128x128", 128],