Skip to content

Instantly share code, notes, and snippets.

View gusdecool's full-sized avatar
😎
do it right or do it twice

Budi Arsana gusdecool

😎
do it right or do it twice
View GitHub Profile
@gusdecool
gusdecool / NPM Logs
Last active August 29, 2015 14:00
libxmljs Failed install 0.9.0 on OSX maverics
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'install',
1 verbose cli 'libxmljs' ]
2 info using npm@1.4.9
3 info using node@v0.10.28
4 warn package.json Gateway-App@0.0.1 No repository field.
5 warn package.json Gateway-App@0.0.1 No README data
6 warn package.json vows@0.7.0 No repository field.
@gusdecool
gusdecool / 0_reuse_code.js
Created June 6, 2014 04:49
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
/*
[exception] 500 | Internal Server Error | Symfony\Component\Process\Exception\RuntimeException
[message] The process has been signaled with signal "5".
[1] Symfony\Component\Process\Exception\RuntimeException: The process has been signaled with signal "5".
at n/a
in /Users/budiarsana/Developer/Sites/pit-sts/vendor/symfony/symfony/src/Symfony/Component/Process/Process.php line 325
at Symfony\Component\Process\Process->wait()
in /Users/budiarsana/Developer/Sites/pit-sts/vendor/symfony/symfony/src/Symfony/Component/Process/Process.php line 195
@gusdecool
gusdecool / getProduct-after.json
Last active August 29, 2015 14:06
TIALS API getProduct
{
"product_code": "CR13-26A",
"product": "SERENDIPITY SHORTS",
"stock": [
{
"colour": "BLACK",
"size": "XS",
"outlet": "THIS IS A LOVE SONG OFFICE",
"qty": 2
},
@gusdecool
gusdecool / Place.php
Created November 4, 2013 06:16
How singleton passing property to child
<?php
class Place
{
/**
* @var string
*/
private $key;
/**
* @var PlaceNearby
@gusdecool
gusdecool / form-booking
Created December 1, 2013 10:08
Code booking sandiphala
<script language="JavaScript">
/******************************
* Editable section -- Start --
******************************/
// DATE SETTINGS - EDIT AS REQUIRED
var daysinAdvance = 1; // Sets default days in advance from current date
var numberNights = 3; // Sets default number of nights
var numberYears = 3; // Sets default number of years to display in year select list
var numberNightsMin = 1; // Sets minimum number of nights accepted
var imgDir = "images/"; // Directory for the dynamic calendar script and images. Trailing slash must be included.
@gusdecool
gusdecool / Applicant.php
Last active January 10, 2017 09:09 — forked from mirahtadi/Applicant.php
Jobs Yii
<?php
/**
* This is the model class for table "applicant".
*
* The followings are the available columns in table 'applicant':
* @property string $position
* @property integer $id
* @property string $fullName
* @property string $nickName