Skip to content

Instantly share code, notes, and snippets.

View andersonqi's full-sized avatar
👨‍💻
Learning

Anderson Quezada andersonqi

👨‍💻
Learning
View GitHub Profile
@andersonqi
andersonqi / arrays.go
Created February 4, 2017 05:18
Arrays Go
from package
import "fmt"
func main() {
var a[5] int
fmt.Println("emp:", a)
fmt.Println("get:", len(a))
@andersonqi
andersonqi / Post.java
Last active December 2, 2015 20:09
Volley Post Request
String url = "";
final StringRequest postRequest = new StringRequest(Request.Method.POST, url,
new Response.Listener<String>() {
@Override
public void onResponse(String response) {
}
@andersonqi
andersonqi / database.php
Last active August 29, 2015 14:07
Connect Mysql Singleton Pattern
<?php
/**
* Mysql database class
*/
class Database {
private $connection;
private $hostname = "hostname";
private $username = "username";
@andersonqi
andersonqi / index.html
Last active January 3, 2016 15:59
Learning events in backbone
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<title>Backbone.js</title>
<script src="jquery-1.10.2.js"></script>
<script src="underscore.js"></script>
<script src="backbone.js"></script>
<script>