This file contains 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
BEGIN MESSAGE. | |
N7Df9ksOeJJwMQp 6IzW6GcI8Qauoat IWnqYQwNY8Y8iIC HokxbOEcMt5cIND | |
8MR5ouIS4ky48IW uufKoZvB3F5TCKq 6Xr2MZHgg6PZhM9 XHlY0TwnaT1W1yh | |
uUi0UlFO0D8KMOx EAS3lsBvUsEbHBO m7DVAFarOHR654y TXwlctwN78KHWP8 | |
lJzXg3yh7lZBdqG czL5Tmxjnp6zgzq zvvqZ2BwlTVlNtt . | |
END MESSAGE. |
This file contains 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
array_filter($input, $callback); | |
array_map($callback, $input); | |
strpos($haystack, $needle); | |
array_search($needle, $haystack); |
This file contains 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
defmodule Prime do | |
@doc """ | |
Generates the nth prime. | |
""" | |
@spec nth(non_neg_integer) :: non_neg_integer | |
def nth(n) when n < 1, do: raise :error | |
def nth(n) do | |
Stream.iterate(2, &(&1 + 1)) | |
|> Stream.filter(&prime?/1) | |
|> Enum.at(n - 1) |
This file contains 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 | |
require 'bundler/inline' | |
gemfile do | |
source 'https://rubygems.org' | |
gem 'pg' | |
end | |
conn = PG.connect( dbname: 'paranoia_null_unique' ) |
This file contains 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
import httplib, json | |
import getopt, sys, os | |
import subprocess | |
def get_connection(organization): | |
return httplib.HTTPSConnection('%s.slack.com' % organization) | |
def get_url(token): | |
return '/services/hooks/incoming-webhook?token=%s' % token |
This file contains 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
<?php | |
echo 'Hello!'; | |
?> |