Skip to content

Instantly share code, notes, and snippets.

View arikon's full-sized avatar

Sergey Belov arikon

  • Yandex
  • Tivat, Montenegro
View GitHub Profile
@mshustov
mshustov / sgg.sh
Last active August 29, 2015 14:05
#!/bin/bash
# Example usage:
# ./sgg.sh http://islands-components.incrop.lego-dev.dev.yandex-team.ru/ popup
GATHER_URL=${1:-https://lego-staging.dev.yandex-team.ru/islands-components/dev/}
BLOCK=$2
DIR_MAIN=gemini/screens
DIR_DIFF=gemini-report/diff
IMG_DIFF=./current-diff.png
@disnet
disnet / scheme.sjs
Created October 8, 2012 19:02
start of scheme in sweet.js (modified from http://pastebin.com/0nPBg8LY)
macro sexp {
case () => {
;
}
case ($p) => {
$p
}
case ($x $y) => {
$x($y);
}
@sbmaxx
sbmaxx / books.md
Last active December 17, 2015 12:39
Книги для руководителя
  • Ицхак Адизес «Идеальный руководитель» и другие книги и видео http://www.adizes.info/
  • Элияху Голдратт «Цель», «Цель-2»
  • Эдвардс Деминг «Выход из кризиса. Новая парадигма управления людьми, системами и процессами»
  • Дэвид Майстер и Патрик Маккенна «Первый среди равных. Как руководить группой профессионалов»
  • Патрик Ленсиони «Три признака унылой работы»
  • Питер Ф. Друкер «Эффективный руководитель»
  • Дж Ханк Рейнвотер «Как пасти котов. Наставление для программистов, руководящих другими программистами»
  • Книги из серии «Одноминутный менеджер»
  • Кауфман «Сам себе МBA»
  • Стивен Кови «Семь навыков высокоэффективных людей»
@danielfdsilva
danielfdsilva / Nodecopter-2013-10-04
Created October 4, 2013 17:50
Clone the dronestream repo (https://github.com/bkw/node-dronestream) and replace the code inside example/express/app.js
var express = require('express')
, routes = require('./routes')
, app = express()
, path = require('path')
, server = require("http").createServer(app)
;
app.configure(function () {
app.set('views', __dirname + '/views');
@cowboy
cowboy / Abstraction.js
Created May 24, 2012 20:25
A modern JavaScript if-elseif-else abstraction, because control flow statements are so 1995
/*
* Abstraction.js
*
* Copyright (c) 2012 "Cowboy" Ben Alman
* Licensed under the MIT license.
* http://benalman.com/about/license/
*/
var Abstraction = (function($) {
var _ = $.prototype;
/*
In a child process, each of the stdio streams may be set to
one of the following:
1. A new file descriptor in the child, dup2'ed to the parent and
exposed to JS as a Stream object.
2. A copy of a file descriptor from the parent, with no other
added magical stuff.
3. A black hole - no pipe created.
@tommeier
tommeier / xvfb_daemon.sh
Created April 27, 2011 10:44
Xvfb startup init script for headless selenium with multiple displays for Jenkins or Teamcity CI server
#!/bin/bash
# /etc/init.d/xvfb_daemon
# Xvfb startup script.
# Tom Meier <tom@venombytes.com>
#
### BEGIN INIT INFO
# Provides: xvfb
# Short-Description: Start/stop/restart daemon
# Description: Controls the Xvfb daemon which starts/stops the X Virtual Framebuffer server
# Example Use:
@cvrebert
cvrebert / css_regression_testing.md
Last active May 9, 2023 12:13
Survey of screenshot-based CSS testing tools

Currently considering https://github.com/webdriverio/webdrivercss


Core Goals:

  • Can test in up-to-date versions of all major browsers
  • Can test on up-to-date versions of all major OSes
  • Can test in IE9 (because Bootstrap v4 will support IE9+)
  • Don't want to have to setup/maintain our own cluster of VMs running all the necessary OSes (and all the versions of Windows)
  • Workflow for management of reference/baseline/norm screenshots
@erikreagan
erikreagan / mac-apps.md
Created August 4, 2012 19:18
Mac developer must-haves

Mac web developer apps

This gist's comment stream is a collection of webdev apps for OS X. Feel free to add links to apps you like, just make sure you add some context to what it does — either from the creator's website or your own thoughts.

— Erik

@rooreynolds
rooreynolds / things_beta_list_completed_tasks.sh
Created March 9, 2012 23:39
Extracting useful data from Things (Cloud beta) via its SQLite database
#Completed tasks (showing their title, start date, completion date and time to complete in days)
sqlite3 -csv -header ~/Library/Application\ Support/Cultured\ Code/Things\ beta/ThingsLibrary.db "SELECT
substr(ZTITLE,0,26) as title,
datetime(ZCREATIONDATE, 'unixepoch', '+31 years', 'localtime') as startdate,
datetime(ZSTOPPEDDATE, 'unixepoch', '+31 years', 'localtime') as completeddate,
round(julianday(datetime(ZSTOPPEDDATE, 'unixepoch', '+31 years', 'localtime')) - julianday
(datetime(ZCREATIONDATE, 'unixepoch', '+31 years', 'localtime')),5) as age
FROM ZTHING WHERE ZSTATUS = 3 ORDER BY completeddate;