View FormErrorsSerializer.php
class FormErrorsSerializer {
public function serializeFormErrors(\Symfony\Component\Form\Form $form, $flat_array = false, $add_form_name = false, $glue_keys = '_')
{
$errors = array();
$errors['global'] = array();
$errors['fields'] = array();
foreach ($form->getErrors() as $error) {
$errors['global'][] = $error->getMessage();
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
.button {
background-color: #eaeaea;
border: 1px solid #e7e7e7;
View jsconfig.json
{
"compilerOptions": {
"target": "es6",
"module": "commonjs",
"allowSyntheticDefaultImports": true,
"jsx": "react",
"alwaysStrict": true
},
"exclude": [
"node_modules"
View get_icon_color.js
function magic(image) {
var imgWidth = 18;
var imgHeight = 18;
var canvas = document.createElement('canvas');
var ctx = canvas.getContext('2d');
// Draw white Rect to avoid problems with favicon opacity
ctx.fillStyle = 'rgb(255, 255, 255)';
ctx.fillRect(0, 0, imgWidth, imgHeight);
ctx.drawImage(image, 0, 0, imgWidth, imgHeight);
try {
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
.button {
display: inline-block;
background-color: #286aa8;
View keybase.md

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

View keymap.cson
'.editor':
'ctrl-shift-n': 'fuzzy-finder:toggle-file-finder'
'ctrl-1': 'tree-view:toggle'
'ctrl-shift-up': 'editor:move-line-up'
'ctrl-shift-down':'editor:move-line-down'
'ctrl-shift-w':'pane:close-other-items'
'ctrl-shift-a': 'command-palette:toggle'
'ctrl-l': 'go-to-line:toggle'
'ctrl-alt-ctrl-up': 'pane:split-right'
'ctrl-alt-ctrl-down': 'pane:split-down'
View Dockerfile
FROM ubuntu:12.04
MAINTAINER Alexander Kiryukhin <alexander@kiryukhin.su>
RUN apt-get update
RUN apt-get -y upgrade
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install apache2 libapache2-mod-php5 php5-mysql php5-gd php-pear php-apc php5-curl curl lynx-cur php5-xdebug php5-memcached memcached wget
RUN a2enmod php5
View Автозапуск TMUX
[[ $TERM != "screen" ]] && (tmux attach || tmux new-session)
View gist:7f8645e1d34608b54bf5
▄▄▄▄▄▄▄ ▄▄▄▄ ▄▄▄ ▄ ▄ ▄▄ ▄ ▄▄▄▄▄▄▄
█ ▄▄▄ █ ▀▄ ▀ ▄ ▀ ▄█▀ ▄▄▀ █ ▄▄▄ █
█ ███ █ ▄ ██ █▄▀ ▀█▄▀ █ █ ███ █
█▄▄▄▄▄█ █▀█ █▀█ █ ▄▀▄ ▄▀▄ █▄▄▄▄▄█
▄▄▄ ▄▄ ██ ▄▄█ ▀▀█ ▄ ██▄ ▄▄▄▄ ▄▄
▄ █▄█▀▄ ▄▄ █▄▄█▄▄█ ██ ▀▀█▄█▄▄▄█
▀▄▀ ██▄█▀▄█▀▀▄█ ███▄ █▀▄ ▀ ▄▀███
▀▄ █▀▄ ▄▄█▄ ▀▀ ▄▄▀▄▄█▀▄█▄▀▀▄▄▄
▀ █▀█▄▄▄▄ ▀▄▄█ ▄ █ ▄ ██▄ ▄ █▄ ▀█▄
█ █▀█▄▀▄▄▄ █▄▄ █▄█ █ ▄ ▀▀▀ █▄█▀