Skip to content

Instantly share code, notes, and snippets.

View mpbod's full-sized avatar

Max Bodhisuwan mpbod

  • Bangkok, Thailand
View GitHub Profile
@mpbod
mpbod / setup.md
Last active March 4, 2017 07:16
eventpop-tickets.js

eventpop-tickets.js

jQuery

The plugin requires jQuery, it has been tested with version 2.2.4.

<script src="https://code.jquery.com/jquery-2.2.4.min.js"></script>
JavaScript
#include <Servo.h> // include the Servo library
// create the servo objects
Servo leftMotor;
Servo rightMotor;
void setup()
{
leftMotor.attach(9); // attaches the servo on pin 9 to a servo object
rightMotor.attach(10); // attaches the servo on pin 10 to a servo object
@mpbod
mpbod / gist:2711c4fd5a7ecba1f91c
Created April 15, 2015 18:17
Setup instruction for CH340 Driver on Yosemite

Setup instruction for CH340 Driver on Yosemite

Download latest driver from

http://www.wch.cn/download/CH341SER_MAC_ZIP.html

Once downloaded, unzip and install.

After it has installed successfully, open Terminal and run

` sudo nvram boot-args="kext-dev-mode=1"

@mpbod
mpbod / gist:6897399
Last active December 25, 2015 01:49
Dolphin I/O iOS SDK - Partner Release 01/04/2014
# Dolphin I/O iOS SDK
###### Partner Release 01/04/2014
---
Thank you for trying Dolphin I/O. This release is the **partner** release. The SDK is compiled and will only work with the application ids you have provided.
If you run into any problem or bugs, we'd love to help. Please feel free to contact Max, <max@socialhappen.com>.
---
@mpbod
mpbod / gist:6660454
Last active December 23, 2015 16:09
Dolphin I/O iOS SDK Closed alpha testing release documentation 22/9/2013.
# Dolphin I/O iOS SDK
###### Closed Alpha Release 22/9/2013
---
Thank you for trying Dolphin I/O. This release is the **closed alpha** release, meaning things will probably break and implementation of the **DolphinSDK** will change in the very near future.
The purpose of this release is for interested developers to try out how Dolphin I/O will work for their application.
If you run into any problem or bugs, we'd love to help. Please feel free to contact Max, <max@socialhappen.com>.
@mpbod
mpbod / gist:5936615
Created July 5, 2013 19:13
Disable assets generation of javascripts and stylesheets in Rails Generator.
#Add these lines to application.rb:
config.generators.stylesheets = false
config.generators.javascripts = false
@mpbod
mpbod / apache_domain_redirect
Created August 8, 2011 03:16
Redirect www.domain.com to domain.com
RewriteEngine On
RewriteCond %{HTTP_host} ^[^\./]+\.[^\./]+$
RewriteRule ^/(.*)$ ht tp://www.%{HTTP_host}/$1 [R=301,L]
@mpbod
mpbod / example_secured_link_action.rb
Created May 2, 2011 20:37
Example action implementation for secured link.
@mpbod
mpbod / example_secured_download_link_0
Created May 2, 2011 20:19
Secured Download Link, nginx config
@mpbod
mpbod / fiftynine.dvtcolortheme
Created April 22, 2011 14:41
DGM59's Xcode4 Theme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>DVTConsoleDebuggerInputTextColor</key>
<string>0.7653 0.699234 0.758969 1</string>
<key>DVTConsoleDebuggerInputTextFont</key>
<string>DroidSansMono - 13.0</string>
<key>DVTConsoleDebuggerOutputTextColor</key>
<string>0.6431 0.5881 0.637824 1</string>