Clone the repo
$ git clone https://arifsetiawan@bitbucket.org/someuser/great-website.git greatwebsite
<?php | |
error_reporting(E_ALL | E_STRICT); | |
// | |
// Require modules | |
require 'Slim/Slim.php'; | |
\Slim\Slim::registerAutoloader(); | |
require 'Slim/Log.php'; | |
// Get Slim Extras from here https://github.com/codeguy/Slim-Extras |
<?php | |
// | |
// Here, we define route and its auth requirements | |
function getAcl() { | |
$acls = array( | |
"/secret" => array("member"), | |
"/moresecret" => array("member","subscribe") | |
); |
var B = require("bluebird/js/main/promise")(); | |
var Bproto = B.prototype; | |
var deferredPrototype = B.pending().constructor.prototype; | |
deferredPrototype.makeNodeResolver = function() { | |
return this.asCallback; | |
}; | |
function bind(fn, ctx) { |
// execute("GET","url","Body") | |
private class ApiClient extends AsyncTask<String, Void, String> { | |
// This runs in other thread | |
@Override | |
protected String doInBackground(String... params) { | |
String method = params[0]; | |
String url = params[1]; | |
String body = params[2]; |
<?xml version="1.0"?> | |
<settings> | |
<console change_refresh="10" refresh="100" rows="32" columns="120" buffer_rows="9999" buffer_columns="0" shell="" init_dir="E:\ArifSetiawan" start_hidden="0" save_size="0"> | |
<colors> | |
<color id="0" r="0" g="0" b="0"/> | |
<color id="1" r="0" g="0" b="128"/> | |
<color id="2" r="0" g="150" b="0"/> | |
<color id="3" r="0" g="150" b="150"/> | |
<color id="4" r="170" g="25" b="25"/> | |
<color id="5" r="128" g="0" b="128"/> |
--- | |
# ^^^ YAML documents must begin with the document separator "---" | |
# | |
#### Example docblock, I like to put a descriptive comment at the top of my | |
#### playbooks. | |
# | |
# Overview: Playbook to bootstrap a new host for configuration management. | |
# Applies to: production | |
# Description: | |
# Ensures that a host is configured for management with Ansible. |
var express = require('express'); | |
// express setup | |
var app = express.createServer(); | |
app.use(express.bodyParser()); | |
app.get('/', function(req, res){ | |
res.writeHead(200, {'content-type': 'text/html'}); | |
res.end( | |
'<form action="/upload" enctype="multipart/form-data" method="post">'+ |
ListView { | |
id: contentView | |
anchors.fill: parent | |
highlightRangeMode: ListView.StrictlyEnforceRange | |
orientation: ListView.Horizontal | |
snapMode: ListView.SnapOneItem | |
clip: true | |
model: internalContentModel |