Feel free to fork and expand and/or add more languages as an example to why this would be horrible, and I'll add them here :)
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 "faraday" | |
| require "faraday_middleware" | |
| module OpenTable | |
| class Error < StandardError ; end | |
| module Request | |
| API_BASE = "http://opentable.herokuapp.com" | |
| def connection |
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
| source :rubygems | |
| gem 'terminal-notifier' | |
| gem 'pusher-client', :git => 'git://github.com/pusher/pusher-ruby-client.git' |
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 'net/ssh' | |
| require 'net/ssh/shell' | |
| require 'open3' | |
| module Net | |
| module SSH | |
| class SessionCommand | |
| attr_reader :command, :output, :exit_code | |
| # Initialize a new session command |
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
| acl manager proto cache_object | |
| acl localhost src 127.0.0.1/32 ::1 | |
| acl localhost src 192.168.0.0/16 ::1 | |
| acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1 | |
| acl SSL_ports port 443 | |
| acl Safe_ports port 80 # http | |
| acl Safe_ports port 21 # ftp | |
| acl Safe_ports port 443 # https | |
| acl Safe_ports port 70 # gopher |
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
| package main | |
| import ( | |
| "fmt" | |
| "os" | |
| "bufio" | |
| "regexp" | |
| ) | |
| var IP_REGEX = regexp.MustCompile(`([\d]{1,3}\.[\d]{1,3}\.[\d]{1,3}\.[\d]{1,3})`) |
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
| package main | |
| import( | |
| "os" | |
| "fmt" | |
| "net/http" | |
| "io/ioutil" | |
| "encoding/json" | |
| ) |
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
| package main | |
| import( | |
| "os" | |
| "fmt" | |
| "net/http" | |
| "github.com/jessevdk/go-flags" | |
| ) | |
| type ServerOptions struct { |
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 "nokogiri" | |
| class CoverageParser | |
| attr_reader :files, | |
| :files_count, | |
| :coverage_percent, | |
| :avg_hit, | |
| :lines_total, | |
| :lines_relevant, | |
| :lines_missed, |
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
| package main | |
| import ( | |
| "log" | |
| "net" | |
| "os" | |
| "github.com/gin-gonic/gin" | |
| "github.com/sosedoff/geoip2-golang" | |
| ) |