Skip to content

Instantly share code, notes, and snippets.

View sampathsl's full-sized avatar
😊
It's working ....

Sampath Thennakoon sampathsl

😊
It's working ....
View GitHub Profile
@sampathsl
sampathsl / ConflictFix.js
Last active December 13, 2015 13:31
jQuery with Prototype usage
// Code that uses other library's $ can follow here.
var jQuery = $.noConflict(true);
@sampathsl
sampathsl / jquery_multiple_version_fix.js
Last active December 13, 2015 13:31
jQuery multiple versions in a single page
jQuery.noConflict();
@sampathsl
sampathsl / gist:69658c600735cc440022
Last active September 21, 2015 22:18 — forked from moraes/gist:2141121
LIFO Stack and FIFO Queue in golang
package main
import (
"fmt"
)
type Node struct {
Value int
}
package main
import (
"database/sql"
"log"
_ "github.com/go-sql-driver/mysql"
)
func main() {
db, err := sql.Open("mysql", "root:@tcp(:3306)/test")