Skip to content

Instantly share code, notes, and snippets.

@auycro
auycro / arduinoNodeJS.js
Created October 5, 2015 14:17
NodeJS Arduino
//Copyright (c) 2015 Gumpanat Keardkeawfa
//Licensed under the MIT license
//Add Lib
var srListPort = require("serialport"); //.SerialPort
var SerialPort = require("serialport").SerialPort
//List port (you may not need this line)
srListPort.list(function (err, ports) {
ports.forEach(function(port) {
@auycro
auycro / CustomPostprocessScript.cs
Created November 19, 2015 07:04
Unity3D postprocess script c#
#if UNITY_IPHONE
using UnityEngine;
using UnityEditor;
using UnityEditor.Callbacks;
using System;
using System.Diagnostics;
using UnityEditor.iOS.Xcode;
@auycro
auycro / LearnIonic.md
Last active January 1, 2016 04:44
learn ionic log
@auycro
auycro / ZOREHSSEHC.log
Last active June 29, 2016 03:17
log about ZOREHSSEHC
======IOS======
Disable Automatic Reference Counting for Some Files
http://stackoverflow.com/questions/6448874/disable-automatic-reference-counting-for-some-files
-fno-objc-arc
StoreKit delegate manage incorrectly
https://github.com/ParsePlatform/Parse-SDK-iOS-OSX/issues/537
http://stackoverflow.com/questions/24675528/ios-crash-report-skproductsrequest
http://stackoverflow.com/questions/3324596/storekit-skproductsrequest-crash
http://stackoverflow.com/questions/4782214/iphone-skproductsrequest-and-message-sent-to-deallocated-instance
http://stackoverflow.com/questions/4150926/in-app-purchase-crashes-on-skpaymentqueue-defaultqueue-addpaymentpayment
npm local lib path
$ echo 'export NODE_PATH="'$(npm root -g)'"' >> ~/.bash_profile && . ~/.bash_profile
npm search hubot scripts
$ npm search hubot-scripts github
Login to heroku
$ heroku login
Push to Heroku
@auycro
auycro / NodeMongoLog
Last active February 18, 2016 18:12
Nodejs+MongoDB+Express
:Reference
https://www.airpair.com/javascript/complete-expressjs-nodejs-mongodb-crud-skeleton
:Mongoose Schema
http://mongoosejs.com/docs/guide.html
:Use MongoDB with a Node.js Application on Heroku
https://scotch.io/tutorials/use-mongodb-with-a-node-application-on-heroku
:Reload Alias
Alert
https://github.com/ksylvest/jquery-growl
https://github.com/ifightcrime/bootstrap-growl
$ git clone [email protected]:rwdaigle/discourse.git && cd discourse
gem install bundle
gem install atomic
bundle install
List gem: gem query --local
check gem version: gem --version
uninstall gem; gem uninstall --all
Set up heroku
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace codevs5sample
{
class Program
{
@auycro
auycro / UnitySlidePanelManager.cs
Last active March 9, 2016 09:55
UnitySlidePanelManager
//Copyright (c) 2016 Gumpanat Keardkeawfa
//Licensed under the MIT license
/*** GameObjectStructure ***
GameObjectWithMask
-RectMask2D
++Grid
-HorizontalLayoutGrid
-ContentSizeFitter
++Content1