Skip to content

Instantly share code, notes, and snippets.

View goldalworming's full-sized avatar

arief nur andono goldalworming

View GitHub Profile
<?php
$active_group = 'default';
$active_record = FALSE;
$db['default']['hostname'] = 'Driver={SQL Server};Server=127.0.0.1;Database=databasenya; Uid=sa;Pwd=sa;';
$db['default']['username'] = 'sa';
$db['default']['password'] = 'sa';
$db['default']['database'] = 'databasenya';
$db['default']['dbdriver'] = 'odbc';
$db['default']['dbprefix'] = '';
$db['default']['pconnect'] = FALSE;
@goldalworming
goldalworming / odbc-setting-url
Created February 25, 2015 12:10
odbc setting url
http://www.asteriskdocs.org/en/3rd_Edition/asterisk-book-html-chunk/installing_configuring_odbc.html
@goldalworming
goldalworming / openclosenewwindow.js
Created March 1, 2015 07:09
open new window then close
function closeOnLoad(myLink)
{
var newWindow = window.open(myLink);
setTimeout(
function()
{
newWindow.close();
},
5000
);
@goldalworming
goldalworming / destroy-scope.js
Created March 1, 2015 23:29
destroy scope example
var newScope = scope.$new(); // create a new scope from the current scope
var content = $compile(template)(newScope); // compile and link to the new scope
element.append(content); // add to the DOM
// .. then later, we want to update the content of the element ...
newScope.$destroy(); // destroy the scope and all child scopes
var newScope2 = scope.$new(); // create a new scope
var content2 = $compile(template2)(newScope2); // compile and link
content.replaceWith(content2); // replace the html content with the new content
@goldalworming
goldalworming / rerendertpl
Last active August 29, 2015 14:16
re render angular
http://jsfiddle.net/3J25M/2/
ostrali http://www.seek.com.au/job
html {
background: url(src/images/bg5.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
@goldalworming
goldalworming / urlpdo
Created March 18, 2015 09:48
url pdo
http://wiki.hashphp.org/PDO_Tutorial_for_MySQL_Developers
sudo apt-get update
sudo apt-get install git-core gcc autoconf make
sudo apt-get install php5-dev php5-mysql
#http://stackoverflow.com/questions/22555561/error-building-fatal-error-pcre-h-no-such-file-or-directory
sudo apt-get install libpcre3-dev
git clone git://github.com/phalcon/cphalcon.git
cd cphalcon/build
sudo ./install
@goldalworming
goldalworming / ci10k100c
Created April 2, 2015 11:10
phalcon vs ci
ab -n 10000 -c 100 http://localhost:8010/web/project/spll/app.php/profiling/datalist?table=user
This is ApacheBench, Version 2.3 <$Revision: 1528965 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests