Skip to content

Instantly share code, notes, and snippets.

Juan Felipe Alvarez Saldarriaga nebiros

Block or report user

Report or block nebiros

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
delebedev /
Created Mar 19, 2014
Opens Xcode workspace or project with AppCode.
if test -n "$(find . -maxdepth 1 -name '*.xcworkspace' -print -quit)"
echo "Opening workspace"
open *.xcworkspace -a /Applications/
if test -n "$(find . -maxdepth 1 -name '*.xcodeproj' -print -quit)"
echo "Opening project"
View lib_charset.go
package lib
import (
View App_Thumb.php
class App_Thumb
protected $_width = null;
protected $_oldWidth = null;
protected $_height = null;
protected $_oldHeight = null;
protected $_imagePath = null;
protected $_resource = null;
moltak / retrofit builder and request
Created Sep 19, 2014
retrofit builder and request
View retrofit builder and request
* Retrofit adapter builder
* Created by moltak on 2014. 7. 9..
public class LMNetworkBuilder {
public static RestAdapter getAdapter() {
return getBuilder().build();
public static RestAdapter.Builder getBuilder() {
patrickhammond /
Last active Sep 14, 2015
Weird OkHttp API behavior where a thrown IOException (SocketTimeoutException) from onResponse does not propagate to onFailure. Discussion here:
package com.demo.okhttpissue;
import android.test.InstrumentationTestCase;
import com.squareup.okhttp.Callback;
import com.squareup.okhttp.OkHttpClient;
import com.squareup.okhttp.Request;
import com.squareup.okhttp.Response;
import com.squareup.okhttp.mockwebserver.MockResponse;
import com.squareup.okhttp.mockwebserver.MockWebServer;
// Real usage
WhiTemplater.Formatter FEATURED_FORMAT = new WhiTemplater.Formatter() {
public String format(Object value) {
return "<b>" + String.valueOf(value)+ "</b>";
WhiTemplater.Formatter NORMAL_FORMAT = new WhiTemplater.Formatter() {
View Cache.php
* Based on FileCache class by Erik Giberti,
* @author nebiros
class App_Cache {
nebiros / Mysql.php
Created Oct 3, 2010
Mysql ala OOP, wrapper for some mysql_* functions
View Mysql.php
* Mysql wrapper, to handle some mysql_* functions in a OOP way.
class App_Db_Mysql {
const DEFAULT_PAGE = 1;
brianleroux / lawnchair-examples.js
Created Jan 27, 2011
examples for using lawnchair js
View lawnchair-examples.js
// create a new store
var store = new Lawnchair({adaptor:'dom', table:'people'});
// saving documents{name:'brian'});
// optionally pass a key{key:'config', settings:{color:'blue'}});
// updating a document in place is the same syntax
public class Fibonacci {
public static int fib(int n) {
if(n == 0 || n == 1) {
return n;
} else {
return fib(n-1) + fib(n-2);
You can’t perform that action at this time.