Skip to content

Instantly share code, notes, and snippets.

View yamii's full-sized avatar

Miriam Mae Iglesia yamii

View GitHub Profile

Keybase proof

I hereby claim:

  • I am yamii on github.
  • I am yamii (https://keybase.io/yamii) on keybase.
  • I have a public key ASB23qm3Q1kYSI60am_17bHmKUFvW3McgULWjS6iGKM3lgo

To claim this, I am signing this object:

$createBilling = ceil( 0.0499999988824129 ) + ceil( 222.400003314018 ) + ceil( 900 )
+ ceil( 1.49999996647239 ) + ceil( 222.400003314018 )
+ ( 900 ) + ceil( 0.0499999988824129 ) + ceil( 222.400003314018 )
+ ( 900 ) + ceil( 1.49999996647239 ) + ceil( 222.400003314018 )
+ ( 900 );
echo 'Create Billing: '. $createBilling;
$overhead = ceil( 5 * 0.04 ) + ceil ( 150 * 0.04 ) + ceil( 1112 * .8 ) + ceil( 300 * 12 );
const data = [
{
'id' : uuid.v4(),
'name' : 'Birdseed Breakfast Club+ Cafe',
'description' : 'An all-day breakfast concept serving great gourmet meals that comforts the soul; we serve specialty-grade coffee too.',
'geoLocation' : {
'type' : 'Point',
'coordinates' : [ 10.319125, 123.896359 ]
},
'photoThumbnail' : thumbnail[ // file name here ],
@yamii
yamii / sample.js
Last active March 13, 2017 11:55
promise coroutine
function create ( done ) {
let createArr = [];
const start = Promise.coroutine( function* ( val ) {
for ( let key in data ) {
if ( key ) {
// bulkCreate and bulkUpdate are a async functions
yield bulkCreate( Sequelize.CON.model( key ), data[ key ] );
yield bulkUpdate( Sequelize.CON.model( key ), data[ key ] );
}
@yamii
yamii / Container.js
Last active October 7, 2015 07:42
get exec status
Container.prototype.getExecStatus = function ( exec, callback ) {
if ( !exec ) {
return callback ( new Error( 'No exec defined' ) );
}
exec.inspect( function ( execError, data ) {
console.log( execError );
console.log( data );
if ( execError ) {
console.log( '%s exited with code %d',