Skip to content

Instantly share code, notes, and snippets.

View bobthecow's full-sized avatar

Justin Hileman bobthecow

View GitHub Profile
@bobthecow
bobthecow / top-github.md
Last active December 29, 2023 23:55 — forked from anvaka/top-github.md
Top GitHub users by total number of stars

I was playing with GitHub Archive recently. Out of curiosity I ran this query:

SELECT COUNT(repository_owner) as totalStars, repository_owner
FROM [githubarchive:github.timeline] 
WHERE type = 'WatchEvent'
AND repository_organization IS NULL
GROUP BY repository_owner
ORDER BY totalStars DESC
@bobthecow
bobthecow / gist:4774286
Last active December 12, 2015 12:48 — forked from smkelly/gist:4774258
# if you want an icon, add it to your attributes:
# menu_link('Foo', '/foo/', icon: 'bar')
def menu_link(text, target, attributes={})
# Prepend the icon, if supplied
if icon = attributes.delete(:icon)
text = "<i class='#{icon}'></i>#{text}"
end
# Build a link
@bobthecow
bobthecow / radio_mustach_example.html
Created March 5, 2012 15:23 — forked from ebaxt/radio_mustach_example.html
Checking radio with Mustache
<!DOCTYPE html>
<html>
<head>
<title></title>
<script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="js/mustache.js"></script>
</head>
<body>
<div id="formWrapper">
@bobthecow
bobthecow / html_compressor.rb
Created February 29, 2012 22:36 — forked from dutygeeks/html_compressor.rb
HTML COMPRESSOR
require 'html_compressor'
class HtmlCompressor < Nanoc3::Filter
identifier :html_compressor
# Runs the content through htmlcompressor.
#
# This method optionally takes options to pass directly to htmlcompressor
#
# @param [String] content The content to filter
<?php
$user2->expects($this->infinite())
->method('getSalt')
->will(
$this->returnCallback(function() use (&$user2) {
return $user2->getSalt();
})
);
My Personal Credit Card
Number: 4111111111111111
CVV: 111
Expires: You're a dick for looking at this
<?php
// unit test:
foreach(array(Order::BILLING, Order::SHIPPING) as $type){
${$type."Address"} = new CustomerAddress();
${$type."Address"}->setFirstName("{$type} First");
${$type."Address"}->setLastName("{$type} Last");
${$type."Address"}->setAddress1("{$type} 123 Main Street");
${$type."Address"}->setAddress2("{$type} Apt 123");
Apple Developer
Technologies
Resources
Programs
Support
Member Center
Search Developer
You learned to use a pastebin? Your mom would be so proud!
#!/usr/bin/env python
""" TapDat - Simple VPN Setup.
"""
import re
import sys
from commands import getoutput as cmd
def main():