View misc.zsh
## Load smart urls if available
# bracketed-paste-magic is known buggy in zsh 5.1.1 (only), so skip it there; see #4434
autoload -Uz is-at-least
if [[ $ZSH_VERSION != 5.1.1 ]]; then
for d in $fpath; do
if [[ -e "$d/url-quote-magic" ]]; then
if is-at-least 5.1; then
autoload -Uz bracketed-paste-magic
zle -N bracketed-paste bracketed-paste-magic
fi
View init.lua
local application = require "mjolnir.application"
local hotkey = require "mjolnir.hotkey"
local window = require "mjolnir.window"
local fnutils = require "mjolnir.fnutils"
-- Set up hotkey combinations
local cmct = {"cmd", "ctrl"}
function switch_fun(name)
local first_attempt = application.launchorfocus(name)
View t.tex
\documentclass{article}
\usepackage[utf8]{inputenc} %% 1
\usepackage[T2A]{fontenc} %% 2
\usepackage[russian]{babel} %% 3
\begin{document}
Это очень длинный текст с переносами. Возможно переносы будут, возможно нет, не узнаешь, пока не скомпилируешь.
\end{document}
View ttt.py
#!/usr/bin/env python
import types
class Base(object):
def __init__(self):
self.v = 5
def m(self):
View -
Configuring usb-1.3.0.0...
Building usb-1.3.0.0...
Preprocessing library usb-1.3.0.0...
[ 1 of 15] Compiling SystemEventManager ( SystemEventManager.hs, dist/dist-sandbox-7450aae9/build/SystemEventManager.o )
[ 2 of 15] Compiling Event ( Event.hs, dist/dist-sandbox-7450aae9/build/Event.o )
[ 3 of 15] Compiling Poll ( dist/dist-sandbox-7450aae9/build/Poll.hs, dist/dist-sandbox-7450aae9/build/Poll.o )
[ 4 of 15] Compiling Utils ( Utils.hs, dist/dist-sandbox-7450aae9/build/Utils.o )
[ 5 of 15] Compiling System.USB.Base ( System/USB/Base.hs, dist/dist-sandbox-7450aae9/build/System/USB/Base.o )
System/USB/Base.hs:117:55:
View Cyrillic - Translit.keylayout
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE keyboard PUBLIC "" "file://localhost/System/Library/DTDs/KeyboardLayout.dtd">
<!--Last edited by Ukelele version 2.2.4 on 2013-10-17 at 14:06 (GMT+07:00)-->
<keyboard group="7" id="19888" name="Cyrillic Translit" maxout="1">
<layouts>
<layout first="0" last="0" modifiers="30" mapSet="138"/>
</layouts>
<modifierMap id="30" defaultIndex="5">
<keyMapSelect mapIndex="0">
<modifier keys="option command? control"/>
View gist:111dab89423e52fbc4ca
./XXX.hs:14:18: Warning: Redundant bracket
Found:
(V.length rd) + (V.length rf)
Why not:
V.length rd + (V.length rf)
./XXX.hs:14:18: Warning: Redundant bracket
Found:
(V.length rd) + (V.length rf)
Why not:
View ekg.json
{
"rts": {
"gc": {
"par_avg_bytes_copied": {
"val": 0,
"type": "g"
},
"par_tot_bytes_copied": {
"val": 0,
"type": "g"
View -
{
"rts": {
"gc": {
"par_avg_bytes_copied": {
"val": 0,
"type": "g"
},
"par_tot_bytes_copied": {
"val": 0,
"type": "g"
View gist:10382771
[begin D3 = (N rem 3) == 0, D5 = (N rem 5) == 0, if not (D3 or D5) -> N; (D3 and D5) -> fizz_buzz; D3 -> fizz; D5 -> buzz end end || N <- lists:seq(1,30)].