tries to provide a way to use NPM to distribute web components with as little abstraction as possible
- uses plain index.js, style.css, index.html etc
- works in multiple environments
consider a module called 'simple-button':
// ==UserScript== | |
// @name MOUSTACHE CHAT | |
// @author Robert Lemon | |
// @version 0.1 | |
// @namespace http://rlemon.com | |
// @description Makes the chat all moustachy | |
// @include http://chat.stackexchange.com/rooms/* | |
// @include http://chat.stackoverflow.com/rooms/* | |
// ==/UserScript== |
require 'connection_pool' | |
require 'redis' | |
require 'metriks' | |
class RedisClientWrapper | |
def initialize(options) | |
@options = options.delete(:pool) | |
@pool = ConnectionPool.new(@options) do | |
::Redis.new(options) | |
end |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# gmail2opera.py | |
# Copyright (c) 2010 Kevin Chabowski | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
This is a story all about how | |
HTML5 got flipped, turned upside down. | |
Now i'd like to take a minute. Just site right there, | |
I'll tell you why you should be using Adobe AIR. | |
In some dark basement, fat and unshaved, gaming: | |
That's where I spent most of my days. | |
Camping out newbs, and pretending to be cool, | |
in the chatrooms talkin trash to some random dude. |
<!-- Include the following CSS and Javascript in your page --> | |
<link href="https://coderbits.com/content/widget/coderbits.css" media="all" rel="stylesheet" type="text/css"> | |
<script src="https://coderbits.com/content/widget/coderbits.js"></script> | |
<!-- Place the following in the page where you want the widget to render and set your username --> | |
<section id="coderbits" data-coderbits-username="<your username>"></section> |
/* | |
We write the language of love | |
No ECMAScript and I would die. | |
That last commit was, full of bugs, | |
I wouldn't roll it back for any other guy! | |
High, is what you were. I know the feeling. | |
God I hate, jQuery Fans! | |
Never gonna make it work |
# WOW! This is inception!!! | |
{KDView} = KD.classes | |
{KDSplitView} = KD.classes | |
{KDInputView} = KD.classes | |
{KDModalView} = KD.classes | |
{KDButtonView} = KD.classes | |
{KDHeaderView} = KD.classes | |
{KDOnOffSwitch} = KD.classes | |
{KDListItemView} = KD.classes |
require 'digest/md5' | |
def gfm(text) | |
# Extract pre blocks | |
extractions = {} | |
text.gsub!(%r{<pre>.*?</pre>}m) do |match| | |
md5 = Digest::MD5.hexdigest(match) | |
extractions[md5] = match | |
"{gfm-extraction-#{md5}}" | |
end |
from pelican import signals | |
""" | |
Neighbor Articles Plugin for Pelican | |
==================================== | |
Adds ``next_article`` (newer) and ``prev_article`` (older) variables | |
to the articles context | |
Usage: |