This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using UnityEngine; | |
| using System.Collections; | |
| using System; | |
| public class CustomEventArgs : EventArgs { | |
| public string message; | |
| } | |
| public delegate void CustomEventHandler(object sender, CustomEventArgs e); | |
| public class EventTest : MonoBehaviour { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ sudo chown -R $USER /usr/local | |
| $ brew doctor |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var window: NSWindow! = NSApplication.sharedApplication().keyWindow |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var appDelegate:AppDelegate = NSApplication.sharedApplication().delegate as AppDelegate |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ sudo brew update | |
| $ brew upgrade --HEAD ruby-build | |
| $ rbenv install --list | |
| $ rbenv install xxx | |
| $ rbenv global xxx | |
| or | |
| $ rbenv local xxx | |
| $ rbenv exec gem install bundler |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(document).on('ready page:load', function() { | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function sortTrFilter(a, b) { | |
| var _a = parseInt($(a).attr('data-id')); | |
| var _b = parseInt($(b).attr('data-id')); | |
| if (_a > _b) { | |
| return 1; | |
| } else { | |
| return -1; | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function filterKeyDelete(key, attr, ar) { | |
| return function(i, index){ | |
| if (i[key] == attr) ar.splice(index, 1); | |
| }; | |
| } | |
| //howto | |
| array.filter(filterKeyDelete('count', 1, array)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ar = ar.filter( | |
| function (x, i, self) { | |
| return self.indexOf(x) === i; | |
| } | |
| ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ar = ar.filter( | |
| function (x, i, self) { | |
| return x.indexOf('hoge') !== -1; | |
| } | |
| ); |