Skip to content

Instantly share code, notes, and snippets.

View falsefalse's full-sized avatar

Illia Furman falsefalse

View GitHub Profile
@falsefalse
falsefalse / run_active_file_in_terminus.py
Last active July 25, 2023 14:17
Run active file in the terminus terminal, similar to vscode "Run active file in active terminal" command
import sublime
import sublime_plugin
from os.path import relpath
class RunActiveFileInTerminusCommand(sublime_plugin.TextCommand):
def relative_path(self, filename):
return min(
(
relpath(filename, folder)
for folder in sublime.active_window().folders()
require 'hpricot'
require 'open-uri'
require 'active_support/core_ext/numeric/conversions'
@base = "http://simpledesktops.com"
def scrape_page(url, page_number = 0)
Dir.mkdir "#{page_number}" unless File.exists? "#{page_number}"
doc = Hpricot( open( url ) )
@falsefalse
falsefalse / .git-ignoreoncommit.sh
Created September 23, 2011 21:11
Git ignore changed files on commit
# do whatever the fuck you want with it license
# set 'assume unchanged' for files in list, replicates tortoise svn 'ignore on commit' feature
# source ~/.git-ignoreoncommit.sh in your profile
# https://github.com/falsefalse
function git-ioc {
VER="0.2"
ignorefile=".gitignore-oncommit"
// browserstack (read: IE11) config
const karma = require('./karma.common.js')
const appComponents = require('./app_components.js')
const browserStackLauncher = {
ie11: {
'base': 'BrowserStack',
'browser': 'ie',
'browser_version': '11.0',
'os': 'Windows',
# mostly taken from http://cheat.errtheblog.com/s/git
[core]
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
# display tab as 2 spaces instead of 8
# http://www.liferay.com/web/raymond.auge/blog/-/blogs/setting-tabwidths-to-match-the-project-settings-in-git-and-vi
pager = less -x2
excludesfile = /Users/falsefalse/.gitignore_global
[color]
ui = auto
@falsefalse
falsefalse / Грехи.md
Last active September 16, 2016 09:35
Грехи

Что же касается злодеяний, то они таковы:

пренебрежение к добру и любовь к убийствам, склонность говорить одно, а думать другое, предпочитать говорить за спиной то, что не говорится в лицо, отворачиваться от праведного и честного, подавлять нижестоящих, лгать вышестоящим, бунтовать, находясь на службе, не испытывать благодарности за сделанное тебе добро, брать взятки у людей, нарушивших закон, следовать кривде и извращать правду, ставить личное выше общественного, наказывать невиновного, разрушать чужие семьи, присваивать имущество других людей, вредить здоровью других, лишать других людей положения, притеснять мудрецов, казнить сдавшихся в плен, клеветать на бессмертных и совершенномудрых, причинять вред мужам Дао-Пути, стрелять по летящим птицам, вырезать зародыши из материнского тела, разбивать яйца птиц, охотиться весной и летом, кощунствовать и поносить божественное и одухотворенное, учить людей дурному, отрицать добрые качества других, устрашать людей ради собственного спокойствия, обирать других ради

@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)})())
@falsefalse
falsefalse / bq10.js
Last active January 2, 2016 07:19
BQ
/*
* Do it.
*
*/
var th = this.thrusters, pod = this;
var _course;
function course(dir) {
// shutdown current engine
_course && th[ _reverse(_course) ](!!0);
// don't thrust in the direction of movement
var Transport = function(methods) {
var fn = function(options) {
this.options = options || {};
};
_.extend(fn.prototype, Transport.prototype, methods);
return fn;
};
_.extend(Transport.prototype, Backbone.Events, {
// stub
validate: function(parsed) { return true; },
@falsefalse
falsefalse / _Custom.css
Last active December 14, 2015 00:18
Chrome user stylesheets
/* Monospace font for GMail plaintext view and compose */
div[class="ii gt adP adO"],
.Ap textarea, .At textarea,
div[class*="LW-avf"] {
font-family: monospace !important;
font-size: 1em !important;
}