Skip to content

Instantly share code, notes, and snippets.

View DianthuDia's full-sized avatar
🐍

TAKAHASHI Kazuaki DianthuDia

🐍
View GitHub Profile
@DianthuDia
DianthuDia / cocoscreator.rb
Created January 9, 2019 14:40
CocosCreator v2.0.1
cask 'cocoscreator' do
version '2.0.1,20180823'
sha256 '1738ace990ff863f0cc757e949b27c513625d71827c0c6ecda1a97b0e12b0e47'
# download.cocos.com was verified as official when first introduced to the cask
url "https://digitalocean.cocos2d-x.org/CocosCreator/v#{version.before_comma}/CocosCreator_v#{version.before_comma}_#{version.after_comma}.dmg"
name 'CocosCreator'
homepage 'http://www.cocos2d-x.org/'
# shim script (https://github.com/Homebrew/homebrew-cask/issues/18809)
#!/usr/bin/env ruby
# coding: utf-8
require 'net/pop'
require 'net/smtp'
AUTH = {
from: '', to: %w[],
pop: {host: '', ssl: true, user: '', pass: ''},
smtp: {host: '', port: 587, user: '', pass: ''},
@DianthuDia
DianthuDia / ActionBarView.js
Created November 12, 2012 16:46 — forked from Mode54/ActionBarView.js
Action Bar Module for Titanium Mobile
/*
* Android API Guide
* http://developer.android.com/guide/topics/ui/actionbar.html
* Android Design Guide
* http://developer.android.com/design/patterns/actionbar.html
* Titanium Mobile will support someday
* https://jira.appcelerator.org/browse/TIMOB-2371
*/
var osName = Ti.Platform.osname,
isAndroid = osName==='android',
@DianthuDia
DianthuDia / module.xcconfig.diff
Created October 25, 2012 01:05
Using iOS 5 Twitter Module in iOS SDK 6.0
// de.marcelpociot.twitter
// https://marketplace.appcelerator.com/apps/1253?1194049273
- OTHER_LDFLAGS[sdk=iphoneos5*]=$(inherited) -framework Twitter -framework Accounts
- OTHER_LDFLAGS[sdk=iphonesimulator5*]=$(inherited) -framework Twitter -framework Accounts
+ OTHER_LDFLAGS=$(inherited) -framework Twitter -framework Accounts
@DianthuDia
DianthuDia / rubycomplete.vim.patch
Created September 19, 2012 10:02
railsのvim-rubyをデバッグする場合のパッチ
--- /var/folders/5y/9cd64vmj6dv7vm7cp8f3vxsm0000gn/T//GqXAr7_rubycomplete.vim 2012-09-19 19:01:34.000000000 +0900
+++ autoload/rubycomplete.vim 2012-09-19 18:57:25.000000000 +0900
@@ -451,7 +451,8 @@ class VimRubyCompletion
#eval( "Rails::Initializer.run" ) #not necessary?
VIM::command('let s:rubycomplete_rails_loaded = 1')
dprint "rails loaded"
- rescue Exception
+ rescue Exception => e
+ VIM::command("echoe %s" % e.backtrace.join(' ') )
dprint "Rails Error %s" % $!