Skip to content

Instantly share code, notes, and snippets.

Alexey Kuleshov kulesa

  • Moscow, Russia
Block or report user

Report or block kulesa

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
dypsilon /
Last active Jun 14, 2019
A badass list of frontend development resources I collected over time.
burke /
Created Jan 27, 2012 — forked from funny-falcon/cumulative_performance.patch
ruby-1.9.3-p327 cumulative performance patch for rbenv

ruby-1.9.3-p327 cumulative performance patch for rbenv

This installs a patched ruby 1.9.3-p327 with various performance improvements and a backported COW-friendly GC, all courtesy of funny-falcon.


You will also need a C Compiler. If you're on Linux, you probably already have one or know how to install one. On OS X, you should install XCode, and brew install autoconf using homebrew.

insin / BootstrapModalMixin.js
Last active Mar 25, 2019
A Bootstrap (3) modal mixin for React / MIT License
View BootstrapModalMixin.js
/** @jsx React.DOM */
var BootstrapModalMixin = function() {
var handlerProps =
['handleShow', 'handleShown', 'handleHide', 'handleHidden']
var bsModalEvents = {
handleShow: ''
, handleShown: ''
, handleHide: ''
madrobby /
Created Nov 14, 2011
Backbone i18n with CoffeeScript
# before this file is loaded, a locale should be set:
# In a browser environment, you can use:
# ```<script>__locale='en';</script>```
# In a server environment (specifically node.js):
# ```global.__locale = 'en';```
# normalize in-app locale string to "en" or "de-AT"
parts = @__locale.split('-')
keeth /
Last active Dec 20, 2018
Apex + Terraform + AWS Lambda + API Gateway + JSON Encoded Errors + CORS
resource "aws_api_gateway_rest_api" "myApi" {
name = "myApi-${var.env}"
description = "My awesome API (${var.env} environment)"
resource "aws_api_gateway_deployment" "myApi" {
depends_on = [
peterhost /
Created Nov 25, 2010
Daemon init script for node.js based app/server (DEBIAN/UBUNTU)
# ------------------------------------------------------------------------------
# SOME INFOS : fairly standard (debian) init script.
# Note that node doesn't create a PID file (hence --make-pidfile)
# has to be run in the background (hence --background)
# and NOT as root (hence --chuid)
allgress / reagent_datascript.cljs
Last active Nov 2, 2018
Test use of DataScript for state management of Reagent views.
View reagent_datascript.cljs
(ns reagent-test.core
(:require [reagent.core :as reagent :refer [atom]]
[datascript :as d]
[cljs-uuid-utils :as uuid]))
(defn bind
([conn q]
(bind conn q (atom nil)))
View Dialog.js
var Dialog = React.createClass({
render: function() {
// 1) render nothing, this way the DOM diff will never try to do
// anything to it again, and we get a node to mess with
return React.DOM.div();
componentDidMount: function() {
// 2) do DOM lib stuff
this.node = this.getDOMNode();
jonstokes / poltergeist.rb
Created Jul 13, 2014
Monkey patching poltergeist for use with JRuby 1.7.11
View poltergeist.rb
require "capybara"
require "capybara/poltergeist"
require "capybara/poltergeist/utility"
module Capybara::Poltergeist
Client.class_eval do
def start
@pid = Process.spawn(*, pgroup: true)
ObjectSpace.define_finalizer(self, self.class.process_killer(@pid))
View mice.css
.mouse, #preview{
position: absolute;
background-repeat: no-repeat;
height: 22px;
min-width: 15px;
z-index: 100;
background-image: url('../images/cursor.png');
You can’t perform that action at this time.