Skip to content

Instantly share code, notes, and snippets.

@killercup
killercup / bling.js
Last active April 24, 2018 14:33 — forked from paulirish/bling.js
bling dot js
/**
* bling.js
*
* Original Author: Paul Irish
* Fetched from https://gist.github.com/paulirish/12fb951a8b893a454b32/fe4fa7794b6575d8356ac73a79b0aefd75ffacbb
*/
/**
* Select elements with CSS-style selector syntax
*
/**
* ## Build Tasks
*/
var path = require('path');
var gulp = require('gulp');
var del = require('del');
var concat = require('gulp-concat');
var sourcemaps = require('gulp-sourcemaps');
var sass = require('gulp-sass');
@killercup
killercup / Readme.md
Created August 13, 2015 07:53
Short and sweet fish prompt.

Fish prompt config

Looks like this:

1__fish___users_pascal_projekte_tools_rust_src_doc_trpl__fish_

@killercup
killercup / Makefile
Created July 15, 2015 13:26
Pandoc Removes Significant Spaces from CSS
html:
pandoc --self-contained \
--css=pandoc.css --to=html5 \
--output=rendered.html Readme.md
fn main() {
use std::collections::HashMap;
// type inference lets us omit an explicit type signature (which
// would be `HashMap<&str, &str>` in this example).
let mut book_reviews = HashMap::new();
// review some books.
book_reviews.insert("Adventures of Huckleberry Finn", "My favorite book.");
book_reviews.insert("Grimms' Fairy Tales", "Masterpiece.");
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Blue Component</key>
<real>0.0</real>
<key>Green Component</key>
<real>0.0</real>
@killercup
killercup / test.rs
Created April 6, 2015 18:20
Perlin noise benchmark: Updated Rust version -- compiles with rustc 1.0.0-nightly (be9bd7c93 2015-04-05) (built 2015-04-05)
// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
@killercup
killercup / Readme.md
Last active August 26, 2023 23:14
Convert The Rust Programming Language to Epub
@killercup
killercup / style.less
Created October 18, 2014 17:55
Flexbox Navigation
/**
* # Main Navigation Styles
*/
@import "../_style/config";
@import "../_style/mixins";
@mod: ~"NavMain";
.@{mod} {
@killercup
killercup / server.js
Last active August 29, 2015 14:07
Render React in Express App, Set HTTP Status
var path = require('path');
var express = require('express');
var l = require('lodash');
var gutil = require('gulp-util');
var React = require('react');
var App = require('./index');
var STATIC_PATH = path.join(__dirname, '../build');