This file contains 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
var serviceList = []; | |
var xhr; | |
var tmpSvc = fetchServicesByProfile(Titanium.UI.currentWindow.profileid); | |
for(i=0;i<tmpSvc.length;i++) | |
{ | |
//Populate serviceList array. | |
} | |
function processServiceList(index) |
This file contains 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
// macro.php | |
<?php | |
$gmw = new GearmanWorker(); | |
$gmw->addServer(); | |
$gmw->addFunction('macro', function(GearmanJob $job) { | |
$gmc = new GearmanClient; |
This file contains 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
#!/bin/bash | |
INNOBACKUP="/root/percona-xtrabackup/innobackupex" | |
INNOBACKUP_OPTIONS="--defaults-file=/etc/my.cnf --ibbackup=/root/percona-xtrabackup/mysql-5.5/storage/innobase/xtrabackup/xtrabackup_innodb55 --parallel=4 --user=root --password=XXXXXXX" | |
BACKUPDIR="/var/sqlbackup/" | |
S3BUCKET="db_backup" | |
echo "Removing old local backups" | |
cd $BACKUPDIR |
This file contains 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 client interface | |
function Client(applicationId, masterKey) { | |
this.applicationId = "applicationId"; | |
this.masterKey = "masterKey"; | |
} | |
exports.Client = Client; | |
//Parse API endpoint | |
var ENDPOINT = 'https://api.parse.com/1/classes/'; |
This file contains 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
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'json' | |
require 'sinatra' | |
require './analyzer.rb' | |
class SentimentApi < Sinatra::Base | |
disable :logging | |
disable :raise_errors | |
disable :show_exceptions |
This file contains 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
#! /bin/bash | |
##################### | |
# Run this as root! # | |
##################### | |
yum update | |
yum groupinstall "Development Tools" | |
yum install zlib-devel readline-devel openssl-devel |
This file contains 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
/** | |
* Debug : var_dump | |
* | |
* @var: Var | |
* @level: Level max | |
* | |
*/ | |
function var_dump(_var, _level) { | |
var dumped_text = ""; | |
if(!_level) _level = 0; |
This file contains 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
/* | |
* Napp Framework | |
* (c) 2012 Napp ApS | |
* www.napp.dk | |
* | |
* NAPP SQL ALLOY ADAPTER | |
* Dual SQLite/SQL sync adapter which will store all models in | |
* an on device database | |
*/ |
This file contains 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
function openView1(e) | |
{ | |
// $.view1 = Alloy.createController('view1'); // create controller | |
// $.rootwindow.add($.view1.getView()); // add View1 to Window | |
// VARS.GVUpdate("globalCurrentView", $.view1.getView()); // Update ref to view2 | |
var view1 = Alloy.createController('view1'); // create controller | |
$.rootwindow.add(view1.getView()); // add View1 to Window | |
VARS.GVUpdate("globalCurrentView", view1.getView()); // Update ref to view2 | |
} |
OlderNewer