Skip to content

Instantly share code, notes, and snippets.

@domenic
domenic / removing-module-x-from-y.md
Last active August 29, 2015 14:02
Practical implications of removing `module x from "y"`

Practical Implications of Removing module x from "y"

Background

According to this gist, the modules break-out session at TC39 (a subset of the larger committee) decided to remove the

module x from "y";

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23/12/2008
  • Revised date: 15/12/2013
  • Original post

--- a/qtdeclarative/src/qml/qml/v8/qv8engine.cpp 2014-10-25 17:36:02.410146635 +0300
+++ b/qtdeclarative/src/qml/qml/v8/qv8engine.cpp 2014-10-25 17:36:55.327536841 +0300
@@ -478,12 +478,6 @@
void QV8Engine::freezeObject(const QV4::ValueRef value)
{
- QV4::Scope scope(m_v4Engine);
- QV4::ScopedFunctionObject f(scope, m_freezeObject.value());
- QV4::ScopedCallData callData(scope, 1);
- callData->args[0] = value;
@trikitrok
trikitrok / print_diamond_kata.md
Created July 25, 2015 19:31
Print Diamond kata

#Print Diamond kata

Given a letter, print a diamond starting with ‘A’ with the supplied letter at the widest point.

For example:

(print-diamond "A") will print

  A
@aeroevan
aeroevan / mutt 1.5.22 kyotocabinet
Created March 12, 2014 14:48
kyoto-cabinet support for mutt
From d05824c53dfeb99fd2f6846e4b8331dee10f96c9 Mon Sep 17 00:00:00 2001
From: Evan McClain <aeroevan@gmail.com>
Date: Wed, 12 Mar 2014 10:14:09 -0400
Subject: [PATCH] mutt: kyoto-cabinet support.
---
configure.ac | 30 +++++++++++++++++++++++++++++-
hcache.c | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 89 insertions(+), 1 deletion(-)
(import [UnityEditor RagdollBuilder])
;-)
(defn- invoke-private [obj meth & args]
(.Invoke
(.GetMethod
(type obj) meth
(enum-or BindingFlags/Instance
BindingFlags/NonPublic))
obj
@sandys
sandys / T430S configuration
Last active December 21, 2017 00:25
super lean and fast Ubuntu 12.04 install. It doesnt hang and with firefox open, it consumes 500 mb of RAM ! - Now works with Ubuntu 14.04/Trusty Tahr!
# http://nodebox.metaforix.net/articles/debian-on-lenovo-thinkpad-t420
#create new file /usr/share/X11/xorg.conf.d/99-my.conf
Section "InputDevice"
Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"

Secret Mojo Recipe

I'm about to share with you the most important piece of knowlege that's been passed down generation to generation through millennia in the Canary Islands: the recipe of Mojo Picón.

This secret sauce is known to have beneficial effects on your health and it instantly improves any food. It doesn't really matter what other food you add to your Mojo, but it is usually combined with "Papas arrugás" because they are cheap and readily available and also have magical properties when prepared

Clojure Metal Wishlist

  • Seamless interop with C/C++
  • Reasonable Binary sizes (Dead Code Elimination)
  • Memory/CPU Efficient
  • Cache efficient data structures
  • Deterministic performance characteristics (Optional GC)
  • Simple interpreter for restricted platforms (iOS, etc.)
  • REPL and hot code reloading (interpreted and native)