Skip to content

Instantly share code, notes, and snippets.

View darryldecode's full-sized avatar
🎯
Focusing

darryl fernandez darryldecode

🎯
Focusing
View GitHub Profile
@darryldecode
darryldecode / AndroidManifext.xml
Created October 7, 2015 13:01 — forked from komamitsu/AndroidManifext.xml
Android Simple web server using NanoHTTPD (http://elonen.iki.fi/code/nanohttpd)
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"></uses-permission>
<uses-permission android:name="android.permission.INTERNET"></uses-permission>

Conventions:

Defining Eloquent model (will assume that DB table named is set as plural of class name and primary key named "id"):

class Shop extends Eloquent {}

Using custom table name

protected $table = 'my_shops';

@darryldecode
darryldecode / gist:456db30246c633bf3ab8
Last active August 29, 2015 14:04
Simple Global/Application Wide Alert Service for Angular JS (animation is dependent with: http://daneden.github.io/animate.css/ library)
/*
|--------------------------------------------------------------------------
| GlobalLoaderService
|--------------------------------------------------------------------------
|
| Global Loader Factory, use for fancy effect when saving, loading, deleting
|
*/
var GlobalLoaderService = function () {};