I hereby claim:
- I am kidbrax on github.
- I am bbeyer (https://keybase.io/bbeyer) on keybase.
- I have a public key ASDAdmReJbJja-iI_niEPUZTiexJpZN7Y9GSmqhcyYXsUgo
To claim this, I am signing this object:
function toCurrency(num) { | |
var sign; | |
var cents; | |
var i; | |
num = num.toString().replace(/\$|\,/g, ''); | |
if (isNaN(num)) { | |
num = "0"; | |
} | |
sign = (num == (num = Math.abs(num))); |
require 'formula' | |
class Librets < Formula | |
url 'http://www.crt.realtors.org/projects/rets/librets/files/librets-1.5.2.tar.gz' | |
homepage 'http://code.crt.realtors.org/projects/librets' | |
md5 '74bcea0eb11f3c66cde5dc3ecea05224' | |
depends_on 'boost' | |
depends_on 'curl' | |
depends_on 'expat' |
$('#formId').submit(function() { | |
newValue = toCurrency($('#filed1Id').val()) | |
newValue2 = toCurrency($('#field2Id').val()) | |
return false; | |
}); |
$('[placeholder]').focus(function() { | |
var input = $(this); | |
if (input.val() == input.attr('placeholder')) { | |
if (this.originalType) { | |
this.type = this.originalType; | |
delete this.originalType; | |
} | |
input.val(''); | |
input.removeClass('placeholder'); | |
} |
~$ brew install librets | |
==> Downloading http://www.crt.realtors.org/projects/rets/librets/files/librets-1.5.3.tar.gz | |
Already downloaded: /Library/Caches/Homebrew/librets-1.5.3.tar.gz | |
==> ./configure --disable-debug --enable-shared_dependencies --prefix=/usr/local/Cellar/librets/1.5.3 --disable-dotnet --disable-java --disable-perl --disable-php --disable-python | |
==> make install | |
/usr/bin/clang++ -Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.8 -fPIC -DHAVE_CONFIG_H -DTARGET_UNIX -DLIBRETS_VERSION='"1.5.3"' -isystem /usr/local/include -I/usr/include -I/usr/local/include -I./project/librets/include -c project/librets/src/AndCriterion.cpp -o build/librets/objects/AndCriterion.o | |
/usr/bin/clang++ -Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.8 -fPIC -DHAVE_CONFIG_H -DTARGET_UNIX -DLIBRETS_VERSION='"1.5.3"' -isystem /usr/local/include -I/usr/include -I/usr/local/include -I./project/librets/include -c project/librets/src/BinaryData.cpp -o build/librets/objects/Bin |
# assuming you use a manifest file such as: | |
# "post-processors": [ | |
# { | |
# "type": "manifest", | |
# "output": "manifest.json", | |
# "strip_path": true | |
# } | |
# ] | |
new_ami_id=$(cat manifest.json | jq -r '.builds | .[length-1].artifact_id' | cut -d ':' -f 2) |
# get all private repos whose default branch is master (note pagination) | |
curl -H "Authorization: token <auth-token>" \ | |
https://api.github.com/orgs/arthrex/repos?type=private \ | |
| jq '.[] | select(.default_branch | contains("master")) | .name, .default_branch' |
I hereby claim:
To claim this, I am signing this object:
set -e | |
set -x | |
# 1. first, mark old repo as read-only so no new changes are added during transition | |
# we could script this too through github api. Note, do not lock repo here, since | |
# git clone will not work if you do. | |
# Make sure Repo doesn't have any active PRs. DO NOT migrate a repo with active Pull Requests. | |
# 2. change this. this is the name from <short_name>.git |
I hereby claim:
To claim this, I am signing this object: