Skip to content

Instantly share code, notes, and snippets.

View skymarionsky's full-sized avatar

Yohei Marion Okuyama skymarionsky

View GitHub Profile
@dasgoll
dasgoll / gist:7b1a796d6e42cb66508bc504bb518f82
Created October 19, 2017 19:41
timeout command on MacOS
brew install coreutils
sudo ln -s /usr/local/bin/gtimeout /usr/local/bin/timeout
@asus4
asus4 / JsonNode.cs
Last active November 8, 2021 12:41
Simple json accessibility for Unity.
/**
Copyright (c) 2017 Koki Ibukuro
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@iwek
iwek / csv-to-json.js
Last active April 24, 2024 19:05
CSV to JSON Conversion in JavaScript
//var csv is the CSV file with headers
function csvJSON(csv){
var lines=csv.split("\n");
var result = [];
var headers=lines[0].split(",");
for(var i=1;i<lines.length;i++){
@sanemat
sanemat / ievms.txt
Created May 8, 2013 22:01
ievms install configure
$ curl -s https://raw.github.com/xdissent/ievms/master/ievms.sh | REUSE_XP="no" IEVMS_VERSIONS="7 8 9" bash
@konitter
konitter / git-study-note.md
Last active December 17, 2015 01:39
Git Study Note
@mahm
mahm / hatebu2pinboard.rb
Created May 9, 2012 07:24
はてなブックマークのエクスポートデータをPinboardにインポートする
#!/usr/bin/env ruby
# -*- coding: utf-8 -*-
#
# ** Hatebu2Pinboard **
# はてブのAtomエクスポートデータをPinboardにインポートします。
# カレントディレクトリにエクスポートデータ(dump.yml)と、
# Pinboardのユーザ名、パスワードを書いたYAMLファイル(auth.yml)を
# 用意して下さい。
#
# [usage]
@kenjis
kenjis / _autocomplete.php
Created April 12, 2012 02:13
FuelPHP 1.2 helperfile for IDE code completion
<?php
class Asset_Instance extends Fuel\Core\Asset_Instance {}
class Cache_Handler_Json extends Fuel\Core\Cache_Handler_Json {}
class Cache_Handler_Serialized extends Fuel\Core\Cache_Handler_Serialized {}
class Cache_Handler_String extends Fuel\Core\Cache_Handler_String {}
class Cache_Storage_Apc extends Fuel\Core\Cache_Storage_Apc {}
abstract class Cache_Storage_Driver extends Fuel\Core\Cache_Storage_Driver {}
class Cache_Storage_File extends Fuel\Core\Cache_Storage_File {}
class Cache_Storage_Memcached extends Fuel\Core\Cache_Storage_Memcached {}
@brettkelly
brettkelly / InstallSendPdfToEvernote
Created February 15, 2012 18:19
Install the "Send PDF to Evernote" option in the Print > PDF menu
tell application "Finder"
try
set appPath to (path to application "Evernote" as text)
on error
display dialog "Couldn't find Evernote. Is it installed?"
end try
set printPath to (path to "dlib" from user domain as text) & "PDF Services"
make new alias at printPath to appPath with properties {name:"Send PDF to Evernote"}
end tell