Skip to content

Instantly share code, notes, and snippets.

'use strict';
var path = require('path');
// Modules
var webpack = require('webpack');
var autoprefixer = require('autoprefixer');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
module.exports = function makeWebpackConfig (options) {
@nucleartux
nucleartux / libdnet_python.rb
Last active August 29, 2015 14:25 — forked from benhagen/libdnet_python.rb
Install Scapy on OSX through Homebrew
require 'formula'
class LibdnetPython <Formula
depends_on 'libdnet'
url 'http://libdnet.googlecode.com/files/libdnet-1.12.tgz'
homepage 'http://code.google.com/p/libdnet/'
sha1 '71302be302e84fc19b559e811951b5d600d976f8'
def install
ENV["CFLAGS"] = "-O3 -w -pipe"
<?php
foreach (glob('choicer-api/features/*.feature') as $featurePath) {
preg_match('#^choicer-api/features/(\w+).feature$#', $featurePath, $matches);
$name = $matches[1];
$contents = parseFeature($featurePath);
file_put_contents("oumobile-choicer-backend.wiki/$name.md", $contents);
}
function parseFeature($path) {
$lines = file($path, FILE_SKIP_EMPTY_LINES);
module Lita
module Handlers
class Animate < Handler
URL = "https://ajax.googleapis.com/ajax/services/search/images"
route(/(?:animate|gif|anim)(?:\s+me)? (.+)/, :fetch, command: true, help: {
"animate QUERY" => "animate everything"
})
def self.default_config(handler_config)
<script type="text/javascript">
(function() {
var fos_comment_script = document.createElement('script');
fos_comment_script.async = true;
fos_comment_script.src = '/app_dev.php/js/35a8e64_comments_1.js';
fos_comment_script.type = 'text/javascript';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(fos_comment_script);
})();
</script>
@nucleartux
nucleartux / LICENSE.txt
Created June 4, 2011 22:33 — forked from 140bytes/LICENSE.txt
140byt.es -- Click ↑↑ fork ↑↑ to play!
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE