I hereby claim:
- I am alesguzik on github.
- I am alesguzik (https://keybase.io/alesguzik) on keybase.
- I have a public key whose fingerprint is E6A9 99E4 7182 9920 854D 1CE3 BCAE 164D DEF6 EE17
To claim this, I am signing this object:
#!/usr/bin/env ruby | |
RubyVM::InstructionSequence.compile_option = {tailcall_optimization: true, trace_instruction: false} | |
def parse_line(line) | |
case line.strip | |
when /^\s*\[\s*(.+?)\s*\]\s*$/ then {section: $1} | |
when /^\s*(.+?)\s*=\s*(.+?)\s*$/ then {key: $1, value: $2} | |
when /^\s*$/ then {} | |
else {error: line} | |
end |
# cookbooks/nginx/recipes/pacemaker.rb | |
include_recipe 'nginx' | |
service 'nginx' do | |
action 'disable' | |
end | |
pacemaker "nginx" do | |
Chef::Log.info c = <<"END" |
#!/usr/bin/env ruby | |
# | |
# Usage lvee2latex.rb id > out.tex | |
require "rubygems" | |
require "open-uri" | |
require "json" | |
require "redcloth" | |
if ARGV[0] == nil |
I hereby claim:
To claim this, I am signing this object:
var getParameterByName = function(name) { | |
name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]"); | |
var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"), | |
results = regex.exec(location.search); | |
return results === null ? "" : decodeURIComponent(results[1].replace(/\+/g, " ")); | |
}; | |
exit_url = getParameterByName('exit_url'); | |
if(exit_url){ | |
window.location = exit_url; | |
} else { |
#include<stdio.h> | |
#include<windows.h> | |
DWORD summ(DWORD a) | |
{ | |
__asm | |
{ | |
push ebx | |
push edx | |
push esi |
a = routes1 do |x| | |
x.get 'bar' | |
x.post 'baz' | |
x.scope 'nested' do |y| | |
y.get 'quux' | |
y.scope 'more-nesting' do |z| | |
z.post 'boo' | |
end | |
end | |
x.scope 'another-scope' do |y| |
Развесить осенние листья | |
(2016, автор: Staenrey) | |
Первая строчка - аккорды | |
Вторая - мелодия | |
Третья - текст | |
Аккорды: | |
G = 2320 | |
C(1) = 3000 |
// ==UserScript== | |
// @name Яндекс.Музыка : лайк трека с клавиатуры | |
// @description Нажатие f на клавиатуре добавляет трек в понравившиеся | |
// @namespace http://aguzik.net | |
// @include http://music.yandex.*/* | |
// @include https://music.yandex.*/* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== |
(ns adventure-of-code.task1 | |
(:require [clojure.string :as str])) | |
(defn new-direction [old-direction offset] | |
(-> old-direction | |
(+ offset) | |
(mod 4))) | |
(defn rotation-to-direction-offset [rotation-str] | |
(case rotation-str |