Skip to content

Instantly share code, notes, and snippets.

Justin Hileman bobthecow

Block or report user

Report or block bobthecow

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@bobthecow
bobthecow / top-github.md
Last active Jan 5, 2019 — forked from anvaka/top-github.md
Top GitHub users by total number of stars
View top-github.md

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
View gist:4774286
# 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
View radio_mustach_example.html
<!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">
View html_compressor.rb
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
View test.php
<?php
$user2->expects($this->infinite())
->method('getSalt')
->will(
$this->returnCallback(function() use (&$user2) {
return $user2->getSalt();
})
);
View gist:942467
My Personal Credit Card
Number: 4111111111111111
CVV: 111
Expires: You're a dick for looking at this
View gist:815088
<?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");
View gist:637794
Apple Developer
Technologies
Resources
Programs
Support
Member Center
Search Developer
View gist:468498
You learned to use a pastebin? Your mom would be so proud!
View gist:430956
#!/usr/bin/env python
""" TapDat - Simple VPN Setup.
"""
import re
import sys
from commands import getoutput as cmd
def main():
You can’t perform that action at this time.