Skip to content

Instantly share code, notes, and snippets.

View razor-x's full-sized avatar

Evan Sosenko razor-x

View GitHub Profile
@razor-x
razor-x / scss.xml
Created May 6, 2011 08:16
SCSS syntax highlighting for Kate. Based on Kate CSS syntax file.
<?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 1.2.03.0).
The latest version of this file can be found at https://gist.github.com/958598
@razor-x
razor-x / Rakefile
Last active March 12, 2021 13:22
Automatic publishing to GitHub Pages with Travis CI
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'
next
end
repo = %x(git config remote.origin.url).gsub(/^git:/, 'https:').strip
@razor-x
razor-x / Rakefile
Last active January 2, 2016 08:19
Configuration file manager.
require 'yaml'
require 'open3'
require 'socket'
task :default => [:install]
def command? name
`which #{name}`
$?.success?
end
@razor-x
razor-x / README.md
Last active February 19, 2020 10:26
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]: https://github.com/razor-x/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
razor-x / server.py
Last active November 13, 2023 15:06
Python http.server that sets Access-Control-Allow-Origin header.
# Python http.server that sets Access-Control-Allow-Origin header.
# https://gist.github.com/razor-x/9542707
import os
import sys
import http.server
import socketserver
PORT = 8000
@-moz-document domain('wikipedia.org') {
@font-face {
font-family: 'Cinzel';
font-style: normal;
font-weight: 400;
src: local('Cinzel-Regular'), url(http://themes.googleusercontent.com/static/fonts/cinzel/v1/mLL0ZqnXRx3m16FnBy9gcg.woff) format('woff');
}
@font-face {
font-family: 'Droid Sans';
font-style: normal;
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document url-prefix("http://www.agony-unleashed.com/wiki/") {
body,
div#footer, div#content,
#mw-page-base, #mw-head-base,
div.vectorTabs, div.vectorTabs *,
div.vectorTabs li a, div.vectorMenu h5 a {
background-image: none;
background-color: #E8E8E8 !important;
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document url-prefix("https://forums.agony-unleashed.com/index.php") {
.post.entry-content a, .signature a {
color: #526175 !important;
}
.post.entry-content a:visited, .signature a:visited {
color: #CC3399 !important;
}
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("eve-survival.org") {
body, h1, h2, h3, h4, h5,
#content, #header, #page, input, #footer,
#comments, #commentheader {
font-family: 'Open Sans', sans-serif !important;
color: #526175 !important;
background-color: #E8E8E8 !important;
}
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("www.mumbleboxes.com") {
body {
overflow-y: scroll;
overflow-x: hidden;
}
#twitter-widget-0, .fb-like {
visibility: hidden;