- Install and configure Postgres [https://library.linode.com/databases/postgresql/ubuntu-12.04-precise-pangolin]
- Download latest stable version of plv8 [https://code.google.com/p/plv8js/wiki/PLV8]
- Extract plv8.zip and cd into it.
- sudo apt-get install subversion
- sudo make static
- Copy plv8.so to /usr/lib/postgres/9.1/lib
- Copy plv8--(version).sql and plv8.control to /usr/share/postgres/9.1/extension
- psql -d dbName
- CREATE EXTENSION plv8;
- Repeat 6-8 for plls (livescript) and plcoffee (coffeescript) if required
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[program:laravel_queue] | |
command=/usr/local/bin/run_queue.sh | |
autostart=true | |
autorestart=true | |
stderr_logfile=/var/log/laraqueue.err.log | |
stdout_logfile=/var/log/laraqueue.out.log |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vue.filter("groupBy", function(value, key) { | |
var groups = { | |
data: value | |
}; | |
if (key) { | |
groups = {}; | |
for (var i = 0; i < value.length; i++) { | |
var row = value[i]; | |
var cell = row[key]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* * ** | |
* | |
* This script converts an existing MySQL database to migrations in Laravel 4. | |
* | |
* 1. Place this file inside app/controllers/ | |
* | |
* 2. In this file, edit the index() method to customize this script to your needs. | |
* - inside $migrate->ignore(), you pass in an array of table |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import retrofit.RestAdapter; | |
/** | |
* Created by NODER on 3/4/2015. | |
*/ | |
public class ApiClient { | |
private static UserApiInterface userApiInterface; | |
public static RestAdapter getRestAdapter(){ | |
return DemoApplication.getInstance().getRestAdapter(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MainActivity extends | |
private PopupWindow popWindow; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.os.Bundle; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.widget.AbsListView; | |
import android.widget.ListView; | |
import android.support.v4.app.ListFragment; | |
import com.nineoldandroids.animation.Animator; | |
import com.nineoldandroids.animation.ObjectAnimator; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package fr.android.test.emptylistview; | |
import java.util.ArrayList; | |
import java.util.HashMap; | |
import android.app.Activity; | |
import android.os.Bundle; | |
import android.widget.ListView; | |
import android.widget.SimpleAdapter; |