This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buffer size: 1048576, reading 16348 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rdoc' | |
class RDoc::Options | |
attr_accessor :you | |
attr_accessor :me | |
end | |
class MyGen | |
RDoc::RDoc.add_generator self |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "all_your_base" | |
require "benchmark/ips" | |
require "minitest/autorun" | |
require "securerandom" | |
BASE62_CHARS = [ | |
"0", "1", "2", "3", "4", "5", "6", "7", "8", "9", | |
"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", | |
"p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "A", "B", "C", "D", | |
"E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
numbers = (1..100).to_a | |
numbers.each do |n| | |
div_5 = n.divmod(5).last.zero? | |
div_7 = n.divmod(7).last.zero? | |
message = | |
if div_5 and div_7 then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
[ -n "$DEBUG" ] && set -x | |
banner() { printf -- "-----> $*\n"; } | |
banner "Restarting VMware networking" | |
banner "Stopping networking" | |
sudo /Applications/VMware\ Fusion.app/Contents/Library/vmnet-cli --stop |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env nu | |
# Adapted from original by Yorick Sijsling | |
# Adapted from bash version by Rob Miller <[email protected]> | |
# | |
# Nushell version | |
# | |
# See history for a less-capable bash version | |
# | |
# Compared to the fork point this version has additional features: | |
# * The default branch is automatically discovered (also in prior bash version) |