Skip to content

Instantly share code, notes, and snippets.

View voldmar's full-sized avatar

Volodymyr Epifanov voldmar

View GitHub Profile
@voldmar
voldmar / vim.rb
Created December 31, 2011 08:35
Fresh homebrew formula for Vim
# To use this recipe you have to:
# $ brew install python --framework
# $ mkdir ~/Frameworks
# $ ln -s "/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework" ~/Frameworks
# $ brew install ./vim.rb
require 'formula'
require 'open-uri'
class Vim < Formula
@gurugray
gurugray / yandex-mail.archive.user.js
Created March 24, 2012 11:57
кнопка «Архив» для почты Яндекса
// ==UserScript==
// @name «Yandex Mail Archive button»
// @namespace gurugray
// @author Sergey sergeev (gurugray)
// @version 0.2.4
// @homepage_url https://raw.github.com/gist/2181532/yandex-mail.archive.user.js
// @description Создаём кнопку «В архив» на web-почте Яндекса
// @include http*://mail.yandex*/neo2/*
@adambard
adambard / errors.clj
Created May 13, 2013 05:48
An example of functional error handling in clojure.
(ns example.errors)
(defn clean-address [params]
"Ensure (params :address) is present"
(if (empty? (params :address))
[nil "Please enter your address"]
[params nil]))
(defn clean-email [params]
"Ensure (params :email) matches *@*.*"
@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active March 27, 2024 06:36
A badass list of frontend development resources I collected over time.
@allgress
allgress / reagent_datascript.cljs
Last active February 16, 2023 21:16
Test use of DataScript for state management of Reagent views.
(ns reagent-test.core
(:require [reagent.core :as reagent :refer [atom]]
[datascript :as d]
[cljs-uuid-utils :as uuid]))
(enable-console-print!)
(defn bind
([conn q]
(bind conn q (atom nil)))
@falsefalse
falsefalse / bookmarklet.js
Last active June 26, 2016 14:09
FriendFeed bookmarklet that ain't broken in Chrome (and other sane webkits)
javascript:void((function(){var%20e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('src','https://cdn.rawgit.com/falsefalse/dc7bb726add8b19a741c/raw/bcb52121789465edc635ca9f244c21a997b00d04/share.js');document.body.appendChild(e)})())
@berkus
berkus / gist:bd3d38587676aa707816
Last active August 29, 2015 14:16
Pepyatka OSX dev setup

Prereqs

  • OSX 10.10.2
  • homebrew
  • development branch of pepyatka-server/pepyatka-html

Install nvm

brew install nvm

@eduard-sukharev
eduard-sukharev / gist:526e6cba8abcc9ce2651
Last active September 28, 2017 19:14
Convert VCHD into mp4 with ffmpeg 2.6

FFMpeg Commands for Transcoding MTS video (from AVCHD-Lite Cameras, like Panasonic DMC-TS1/2)

Encoding parameters as for static ffmpeg-2.6.1-static build

720p -> H.264 (x264) video + AAC 128kbps audio:

Medium quality 720p:

ffmpeg -i 00001.MTS -threads 3 -y -vcodec libx264 -qscale 0 -acodec libvo_aacenc -ab 128k -ar 44100 -ac 2 -s 1280x720 -b 1M output.mp4

High quality 720p: