Skip to content

Instantly share code, notes, and snippets.

View levonlee's full-sized avatar
🎯
Focusing

misterlcanada levonlee

🎯
Focusing
View GitHub Profile
@levonlee
levonlee / 0_reuse_code.js
Created October 7, 2015 21:14
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
<?php
$condition = true;
$arr = array(
'a' => 'abc',
($condition ? 'b' : '') => ($condition ? '123' : ''),
($condition ? 'c' : '') => ($condition ? 'xyz' : ''),
);
$arr = array_filter($arr);