This file contains hidden or 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
| ʕっ•ᴥ•ʔっ I do have more than six projects! |
This file contains hidden or 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
| /** | |
| * (c) 2014 Anton Medvedev | |
| * | |
| * SELECT_________________ | |
| * / \ \ | |
| * .___ FROM JOIN | |
| * / \ | / \ | |
| * a city_name people address ON | |
| * | | |
| * =___________ |
This file contains hidden or 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
| let | |
| p = s => process.stdout.write(s), | |
| esc = (...x) => x.map(i => p('\u001B[' + i)), | |
| {columns, rows} = process.stdout, | |
| [w, h] = [columns, rows * 2], | |
| i = w * h, | |
| s = Array(w * h).fill(false), | |
| cx = Math.floor(w / 2) - 6, cy = Math.floor(h / 2) - 7, | |
| seed = Date.now() % 3 |
This file contains hidden or 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 | |
| /** | |
| * Dot notation for access multidimensional arrays. | |
| * | |
| * $dn = new DotNotation(['bar'=>['baz'=>['foo'=>true]]]); | |
| * | |
| * $value = $dn->get('bar.baz.foo'); // $value == true | |
| * | |
| * $dn->set('bar.baz.foo', false); // ['foo'=>false] | |
| * |
This file contains hidden or 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 | |
| namespace AppBundle\Entity; | |
| use AppBundle\DependencyInjection\Container; | |
| class ActiveRecord extends Container | |
| { | |
| protected static function getDoctrine() | |
| { |
This file contains hidden or 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 | |
| $c=' | |
| <?php | |
| $c=\'%s\'; | |
| printf($c, addslashes($c));'; | |
| printf($c, addslashes($c)); |
This file contains hidden or 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
| global.table = (json) => { | |
| let Table = require('cli-table3') | |
| let table = new Table({head: Object.keys(json[0])}); | |
| table.push(...json.map(Object.values)) | |
| return table.toString() | |
| } |
This file contains hidden or 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
| package main | |
| import ( | |
| "fmt" | |
| "os" | |
| "regexp" | |
| "strings" | |
| ) | |
| type token = string |
This file contains hidden or 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
| global.find = re => json => [...find(json, re)] | |
| function* find(v, regex, path = '') { | |
| if (regex.test(path)) { | |
| yield path | |
| return | |
| } | |
| if (typeof v === 'undefined' || v === null) { | |
| return |
This file contains hidden or 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
| /* | |
| * Flyspeck is Dependency Injection Container. | |
| * | |
| * Copyright (c) 2014 Anton Medvedev | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining a copy | |
| * of this software and associated documentation files (the "Software"), to deal | |
| * in the Software without restriction, including without limitation the rights | |
| * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| * copies of the Software, and to permit persons to whom the Software is furnished |
NewerOlder