Skip to content

Instantly share code, notes, and snippets.


Evan Sosenko razor-x

View GitHub Profile
razor-x /
Last active Feb 19, 2020
Load GitHub Gists asynchronously and optionally specify which file to show.

Load GitHub Gists asynchronously

This is now a Bower package: [gist-async]. [gist-async]:

Requires jQuery.

Jekyll plugin included that modifies the gist markup added by its gist Liquid tag.

Load GitHub Gists asynchronously and optionally specify which file to show.

razor-x / Rakefile
Last active Jan 15, 2020
Automatic publishing to GitHub Pages with Travis CI
View Rakefile
desc 'Generate deck from Travis CI and publish to GitHub Pages.'
task :travis do
# if this is a pull request, do a simple build of the site and stop
if ENV['TRAVIS_PULL_REQUEST'].to_s.to_i > 0
puts 'Pull request detected. Executing build only.'
sh 'bundle exec rake build'
repo = %x(git config remote.origin.url).gsub(/^git:/, 'https:').strip
razor-x / shortcode-gist.php
Last active Jul 8, 2019
WordPress shortcode for loading gists asynchronously with gist-async.
View shortcode-gist.php
// Created by timrourke.
// This silly little shortcode simplifies using Evan Sosenko's excellent
// script for async loading of github gists.
// Plop this in your functions file or functionality plugin.
// Usage: [gist id="12345567" file="example.js"]
function async_gist_func($atts) {
razor-x / fp.js
Created Mar 19, 2019
Exports for phi and rxjs together
View fp.js
export * from '@meltwater/phi'
export {
razor-x /
Last active Mar 9, 2019
Python http.server that sets Access-Control-Allow-Origin header.
# Python http.server that sets Access-Control-Allow-Origin header.
import os
import sys
import http.server
import socketserver
PORT = 8000
razor-x / scss.xml
Created May 6, 2011
SCSS syntax highlighting for Kate. Based on Kate CSS syntax file.
View scss.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
Kate SCSS syntax highlighting definition
Modified the Kate CSS syntax highlighting definition to support SCSS.
This file should be merged with any updates to the normal Kate CCS definition (see note on version numbering in changelog for
The latest version of this file can be found at
set -e
set -u
if [ ! "${TRAVIS:-}" = 'true' ]; then
echo 'This is not running on Travis CI. Exiting!'
exit 1
razor-x /
Last active Mar 3, 2016
Counter-Strike: Global Offensive Config

Counter-Strike: Global Offensive Config

Launch Options

-novid -w 1920 -h 1080 -tickrate 128

autoexec.cfg and config.cfg

razor-x / knife.rb
Last active Feb 25, 2016
Portable .chef/knife.rb for Chef projects.
View knife.rb
# Local Environment
home_dir = Dir.home
chef_dir = File.join(home_dir, '.chef')
secret_dir = File.join(chef_dir, 'private')
organization = ENV['chef_org'] || 'the_organization_name'
knife_override = File.join(chef_dir, 'knife_override.rb')
username = (ENV['USER'] || ENV['USERNAME']).downcase
razor-x / tag-gist.rb
Last active Jan 27, 2016
Jekyll plugin for gist-async that modifies the gist markup added by its gist Liquid tag.
View tag-gist.rb
# Overrides the gist markup added by Jekyll's gist Liquid tag
# to support loading GitHub Gists asynchronously using gist-async from
# Must load the jekyll-gist plugin:
require 'jekyll-gist'
module Jekyll
module Gist