View librets.rb
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
require 'formula' | |
class Librets < Formula | |
homepage 'http://code.crt.realtors.org/projects/librets' | |
url 'https://github.com/NationalAssociationOfRealtors/libRETS/archive/1.6.1.tar.gz' | |
sha1 '0078524e12ced0ac98c472c8a9e69c8d12d24546' | |
depends_on 'swig' | |
depends_on 'boost' | |
depends_on 'autoconf' |
View test_api_rate_limit
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
Mikebook-Pro-SSD:local mike$ curl -i -X GET --url http://localhost:8000/hello | |
HTTP/1.1 200 OK | |
Date: Thu, 04 Jun 2015 22:17:29 GMT | |
Content-Type: application/json; charset=utf-8 | |
Content-Length: 23 | |
Connection: keep-alive | |
X-RateLimit-Limit: 5 | |
X-RateLimit-Remaining: 1 | |
X-Powered-By: Turbo Hamsters |
View Constants.swift
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
// | |
// Constants.swift | |
// Goomzee | |
// | |
// Created by Michael Sparr on 11/11/15. | |
// | |
import Foundation | |
// MARK: - Environment |
View librdkafka.rb
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
class Librdkafka < Formula | |
desc "The Apache Kafka C/C++ library" | |
homepage "https://github.com/edenhill/librdkafka" | |
url "https://github.com/edenhill/librdkafka/archive/0.9.1.tar.gz" | |
sha256 "5ad57e0c9a4ec8121e19f13f05bacc41556489dfe8f46ff509af567fdee98d82" | |
#bottle do | |
# cellar :any | |
# sha256 "63b97ce272e07632f10e33a7963f291bf1a0457f0823d4ab4bdce01eb3e65bbe" => :el_capitan | |
# sha256 "ffa2e218bbd43230c3a999b3adb7f4e08f132a15fa43ae552dd7692874834f91" => :yosemite |
View stream_producer.py
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 python | |
# encoding: utf-8 | |
""" | |
stream_producer.py | |
Created by Michael Sparr on 2016-01-11. | |
Copyright (c) 2016 Goomzee Corporation. All rights reserved. | |
""" | |
import sys |
View stream_consumer.py
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 python | |
# encoding: utf-8 | |
""" | |
stream_consumer.py | |
Created by Michael Sparr on 2016-01-17. | |
Copyright (c) 2016 Goomzee Corporation. All rights reserved. | |
""" | |
import sys |
View local_storage_fallback.js
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
/** | |
* Simple localStorage with Cookie Fallback | |
* | |
* USAGE: | |
* ---------------------------------------- | |
* Set New / Modify: | |
* store('my_key', 'some_value'); | |
* | |
* Retrieve: | |
* store('my_key'); |
View cleanup_docker.sh
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 bash | |
# optionally add --force flag | |
# stop all containers | |
echo "Stopping all containers" | |
docker ps -a | awk -F ' ' '{print $1}' | xargs docker stop | |
# remove all containers | |
echo "Removing all containers" |
View pure_javascript_hash.js
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
const hash = (str) => { | |
let val = 0; | |
const strlen = str.length; | |
if (strlen === 0) { return val; } | |
for (let i = 0; i < strlen; ++i) { | |
const code = str.charCodeAt(i); | |
val = ((val << 5) - val) + code; | |
val &= val; // Int32 |
View test-app.yaml
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
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
labels: | |
app: test-app | |
name: test-app | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: |
OlderNewer