Skip to content

Instantly share code, notes, and snippets.

@akatov
akatov / +README.md
Last active August 26, 2016 16:05
Some quines
@akatov
akatov / foojure-enhancer
Created September 30, 2013 04:50
a tampermonkey script to enhance the http://foojure.clojurecup.com experience
// ==UserScript==
// @name Foojure enhancer
// @namespace http://use.i.E.your.homepage/
// @version 0.1
// @description enter something useful
// @match http://foojure.clojurecup.com/
// @copyright 2012+, You
// ==/UserScript==
var tables = ['fireball', 'garlando', 'leonhart', 'roberto-sport', 'tornado', 'unknown']
@akatov
akatov / 0_reuse_code.js
Created April 22, 2014 04:22
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
@akatov
akatov / chat.rb
Last active August 29, 2015 14:22 — forked from rkh/chat.rb
# coding: utf-8
require 'sinatra'
set server: 'thin', connections: []
get '/' do
halt erb(:login) unless params[:user]
erb :chat, locals: { user: params[:user].gsub(/\W/, '') }
end
get '/stream', provides: 'text/event-stream' do
@akatov
akatov / project.clj
Created June 22, 2015 10:19
openymsg test
(defproject msngr "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.6.0"]
[net.sf.openymsg/openymsg "0.6.0"]]
:main msngr.core
~ lldb /usr/bin/ruby
Current executable set to '/usr/bin/ruby' (x86_64).
(lldb) break rb_exit
invalid command 'breakpoint rb_exit'
(lldb) break set --name rb_exit
Breakpoint 1: where = libruby.2.0.0.dylib`rb_exit, address = 0x000000000008bc6b
(lldb) run -eexit
Process 87866 launched: '/usr/bin/ruby' (x86_64)
Process 87866 stopped
* thread #1: tid = 0x2e4348, 0x0000000100090c6b libruby.2.0.0.dylib`rb_exit, queue = 'com.apple.main-thread, stop reason = breakpoint 1.1
@akatov
akatov / application.controller.js
Last active March 2, 2016 14:54
Experimenting with z-index
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle'
});
@akatov
akatov / adapters.application.js
Last active November 10, 2016 01:08
Barrels And Casks App
import Adapter from 'ember-data/adapter';
import Game from '../models/game';
import RSVP from 'rsvp';
var globalId = 0;
export default Adapter.extend({
findRecord(store, type, id) {
console.log('find');
return RSVP.resolve({ id });
@akatov
akatov / README.md
Last active July 15, 2017 00:47
ember-co twiddle test
@akatov
akatov / README.md
Last active March 22, 2017 18:40
Promise Array Experiments