Skip to content

Instantly share code, notes, and snippets.

Avatar
🕶️
8)

Damien Rajon pyrho

🕶️
8)
View GitHub Profile
View kitty.conf
# vim:fileencoding=utf-8:ft=conf
# You can include secondary config files via the "include" directive.
# If you use a relative path for include, it is resolved with respect to the
# location of the current config file. Note that environment variables
# are expanded, so ${USER}.conf becomes name.conf if USER=name
# For example:
# include other.conf
# Fonts {{{
@pyrho
pyrho / kitty.applescript
Created Mar 23, 2020
Alfred Kitty custom terminal integration
View kitty.applescript
on alfred_script(q)
do shell script "/Applications/Kitty.app/Contents/MacOS/kitty @ --to unix:/tmp/mykitty new-window --new-tab"
tell application "kitty" to activate
tell application "System Events" to keystroke q
tell application "System Events"
key code 36 -- enter key
end tell
end alfred_script
@pyrho
pyrho / gulpfile.js
Last active Jun 17, 2017
Simple gulpfile for a typescript project, including sourcemaps support and mocha (support material for https://25.wf/programing/2017/06/13/gulp-and-typescript/)
View gulpfile.js
const gulp = require('gulp');
const ts = require('gulp-typescript');
const sourcemaps = require('gulp-sourcemaps');
const mocha = require('gulp-mocha');
const del = require('del');
const gutil = require('gulp-util');
const config = {
outputDirectory: './build',
inputSourceFiles: [
View keybase.md

Keybase proof

I hereby claim:

  • I am pyrho on github.
  • I am pyrho (https://keybase.io/pyrho) on keybase.
  • I have a public key whose fingerprint is 5713 1F64 2829 BC4C 20EE 44F2 643C 9F9C E508

To claim this, I am signing this object:

View gist:9316787
var Promise = require('bluebird');
function testFailReject(){
return Promise.reject(new Error('An error happened'));
}
testFailReject()
.error(function(error){
You can’t perform that action at this time.