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
<?php | |
class Abc_Region extends Db_ActiveRecord | |
{ | |
public $table_name = 'abc_regions'; | |
public $has_many = array( | |
'countries'=>array('class_name'=>'Shop_Country', 'foreign_key'=>'abc_region_id') | |
); | |
public function define_columns($context = null) | |
{ |
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
// swap the keybindings for paste and paste_and_indent | |
{ "keys": ["super+v"], "command": "paste_and_indent" }, | |
{ "keys": ["super+shift+v"], "command": "paste" } |
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
# update app dependecies | |
php composer.phar update --profile | |
# cleaning up cache, and optimize Laravel classes | |
php artisan cache:clear | |
php artisan optimize | |
# run unit test | |
php phpunit.phar -c phpunit.xml |
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
server { | |
listen 80; | |
server_name slingshot.co.nz; | |
root /var/www/vhosts/slingshot.co.nz/public | |
location / | |
{ | |
index index.php index.html index.htm; | |
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
; pool name ('www' here) | |
[www] | |
; Unix user/group of processes | |
user = www-data | |
group = www-data | |
; The address on which to accept FastCGI requests. | |
listen = 127.0.0.1:9000 |
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
declare module "bottlejs/main" { | |
class Bottle { | |
static pop: (name?: string) => Bottle | |
static config: Object; | |
public container: Bottle.IContainer; | |
constructor(name?: string); | |
/** |
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
{ | |
"appendix": { | |
"airlines": [ | |
{ | |
"active": true, | |
"fs": "NZ", | |
"iata": "NZ", | |
"icao": "ANZ", | |
"name": "Air New Zealand", | |
"phoneNumber": "1-800-262-1234" |