Skip to content

Instantly share code, notes, and snippets.

View therealchiko's full-sized avatar
👋
hello :)

Chiko therealchiko

👋
hello :)
View GitHub Profile
import Controller from '@ember/controller';
export default class ApplicationController extends Controller {
appName = 'Ember Twiddle';
let numbers = [];
get totalNumbers(){
console.log(numbers);
}
import Component from '@glimmer/component';
export default class extends Component {
@action
sayHello(){
console.log("hello");
}
}

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@therealchiko
therealchiko / gist:a7bdfeb961e18056e3d7986661d0a140
Created August 6, 2017 09:55
Two functions to clean desktop and get certain project from Sites dir
function get(){
mv ~/Sites/$1 ~/Desktop/
cd ~/Desktop/$1
ll
open -a Phpstorm ./
}
function store(){
mv ~/Desktop/$1 ~/Sites/
cd ~/Sites/
@therealchiko
therealchiko / gist:b07a287c6e72d5d794c69c1fda4d31b6
Created July 28, 2017 01:28
simple script to navigate to your any dir on your system quickly
function go(){
WAY=$1
CAPPED=$(tr a-z A-Z <<< ${WAY:0:1})${WAY:1}
SUB=$2
cd ~/$CAPPED/$SUB
}
<?php
//all the info for this business is available inside $_SESSION['businessinfo']
//let's rearrange it.
$f3->set('bid', $f3->get('SESSION.businessinfo')->bid);
$businessinfo =new DB\SQL\Mapper($db, 'business_info');
//this sets the keywords array with all the words we are looking for.
$f3->set('keywords', explode(',',$businessinfo->load(array('bid=?', $f3->get('bid')))['keywords']));