Skip to content

Instantly share code, notes, and snippets.

@quasilyte
quasilyte / QuaGo
Created Aug 17, 2014
QuaGo: Sublime color scheme
View QuaGo
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<!-- Generated by: TmTheme-Editor -->
<!-- ============================================ -->
<!-- app: http://tmtheme-editor.herokuapp.com -->
<!-- code: https://github.com/aziz/tmTheme-Editor -->
<plist version="1.0">
<dict>
<key>name</key>
<string>Humane</string>
@quasilyte
quasilyte / Links
Last active Oct 14, 2015
May be useful
View Links
View CFG
{
"always_show_minimap_viewport": true,
"auto_complete_commit_on_tab": true,
"caret_style": "solid",
"color_scheme": "Packages/WebExPert.tmTheme",
"dpi_scale": 1.08,
"ensure_newline_at_eof_on_save": true,
"fade_fold_buttons": false,
"font_face": "ubuntu mono",
"font_size": 16,
View gist:b6e77f8745bd327eeeb4
get(key): {
container[key]
}
lazy_get(key): {
IF ({container[key].has_key?} '@lazyLoader') @then {
({container[key]['@lazyLoader']})
BECOME get
}
View bytecode
// source
z = 100
x = 4
y = 10
x = x + y
z = z + y
// stack based:
push 100
push 10
View fast_memset
/*
COPIED FROM MUSL
http://git.musl-libc.org/cgit/musl/tree/src/string/memset.c
*/
#include <string.h>
#include <stdint.h>
void *memset(void *dest, int c, size_t n)
{
@quasilyte
quasilyte / emacs
Created Jul 27, 2017
dot emacs dot el -- summer 2017
View emacs
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; File name: ` ~/.emacs '
;;; ---------------------
;;;
;;; If you need your own personal ~/.emacs
;;; please make a copy of this file
;;; an placein your changes and/or extension.
;;;
;;; Copyright (c) 1997-2002 SuSE Gmbh Nuernberg, Germany.
;;;
View dot_emacs.el
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; File name: ` ~/.emacs '
;;; ---------------------
;;;
;;; If you need your own personal ~/.emacs
;;; please make a copy of this file
;;; an placein your changes and/or extension.
;;;
;;; Copyright (c) 1997-2002 SuSE Gmbh Nuernberg, Germany.
;;;
View nop.csv
opcode encoding mode32 mode64 cpuid tags rw_actions multisize datasize
NOP 90+rd V V operand32,operand64 Y
NOP 90+rw V V operand16,operand64 Y
NOP F3 90+rd V V operand32 Y
NOP F3 90+rw V V operand16 Y
NOP r/m32 0F 18 /4 V V operand32 r Y 32
NOP r/m32 0F 18 /5 V V operand32 r Y 32
NOP r/m32 0F 18 /6 V V operand32 r Y 32
NOP r/m32 0F 18 /7 V V operand32 r Y 32
NOP r/m32, r32 0F 19 /r V V operand32 r,r Y 32
View gccgo_vs_6g.csv
benchmark speedup%
image/color/YCbCrToRGB/0 100
math/cmplx/Conj 100
image/color/YCbCrToRGB/255 100
image/color/RGBToYCbCr/0 100
image/color/RGBToYCbCr/Cb 100
image/color/RGBToYCbCr/Cr 100
image/color/YCbCrToRGB/128 100
image/color/NYCbCrAToRGBA/255 95
image/color/NYCbCrAToRGBA/0 94