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 | |
# Notes: | |
# * Your JS files in the "manifest" will be minified using Google's Closure Compiler | |
# and added to the final build in the order listed. | |
# * Vendor libraries (like jQuery) and the "compiler.jar" must be in your | |
# "vendor_lib_path" directory. | |
# * Write your JS in modules for best results! | |
# Running file directly |
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 'readline' | |
first_run = true | |
loop do | |
if first_run | |
puts | |
puts "Type a command to get started." | |
puts "Type \"exit\" to quit." | |
first_run = false |
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
{ | |
"organization": "String", | |
"category": "String", | |
"alias": "String", | |
"location": { | |
"address": "String", | |
"city": "String", | |
"state": "String" | |
}, | |
"url": { |
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 'fileutils' | |
if Dir.exists? "App.app" | |
puts "Nope" | |
exit | |
end | |
FileUtils.mkpath "App.app/Contents/MacOS" | |
FileUtils.mkpath "App.app/Contents/Resources" |
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
{ | |
"date_range": { | |
"start": "templateId[root='2.16.840.1.113883.10.20.22.2.6.1'] > effectiveTime > low.value", | |
"end": "templateId[root='2.16.840.1.113883.10.20.22.2.6.1'] > effectiveTime > high.value" | |
}, | |
"name": "templateId[root='2.16.840.1.113883.10.20.22.4.7'] > code.displayName", | |
"code": "templateId[root='2.16.840.1.113883.10.20.22.4.7'] > code.code", | |
"code_system": "templateId[root='2.16.840.1.113883.10.20.22.4.7'] > code.codeSystem", | |
"code_system_name": "templateId[root='2.16.840.1.113883.10.20.22.4.7'] > code.codeSystemName", | |
"status": "templateId[root='2.16.840.1.113883.10.20.22.4.28'] > value.displayName", |
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
class String | |
def colorize(c); "\e[#{c}m#{self}\e[0m" end | |
def error; colorize("1;31") end | |
def bold; colorize("1") end | |
end |
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
{ | |
"organization": "String", | |
"category": "String", | |
"alias": "String", | |
"location": { | |
"street": ["String"], | |
"city": "String", | |
"state": "String", | |
"zip": "String", | |
"lat": "Number", |
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
/* | |
* module.js - The description of the module. | |
*/ | |
var Module = (function () { | |
// Properties | |
/////////////////////////// | |
var x = 0; |
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
#!/bin/bash | |
# -------------------------------------------------------------------------------------------- | |
# Installs Ruby using rbenv/ruby-build on the Raspberry Pi (Raspbian) | |
# | |
# Run from the web: | |
# bash <(curl -s https://gist.githubusercontent.com/blacktm/8302741/raw/install_ruby_rpi.sh) | |
# -------------------------------------------------------------------------------------------- | |
# Set the Ruby version you want to install |
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
#!/bin/bash | |
RUBY_VERSION=3.3.0 | |
brew update | |
brew install rbenv ruby-build | |
read -d '' String <<"EOF" | |
# rbenv | |
eval "$(rbenv init -)" |
OlderNewer