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 | |
set -e | |
echo "awww yeahhh......" | |
open https://www.youtube.com/watch?v=6ZktNItwexo&list=PLWe1C5b7Id0xNQo850MmLqTqYh1OnJxN8 | |
open https://www.youtube.com/watch?v=it1aZBPuH4w&list=PLWe1C5b7Id0xNQo850MmLqTqYh1OnJxN8 | |
open https://www.youtube.com/watch?v=PHzOOQfhPFg&list=PLWe1C5b7Id0xNQo850MmLqTqYh1OnJxN8 | |
open https://www.youtube.com/watch?v=03ITP-KI-PI&list=PLWe1C5b7Id0xNQo850MmLqTqYh1OnJxN8 |
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 | |
set +e | |
declare -i RESULT=0 | |
GIT_DIFF_CMD="git diff HEAD~1 --name-only" | |
# Don't exit on error. Collect the errors instead. | |
YAML_PATH_LIST=`$GIT_DIFF_CMD |grep .yml` | |
# Check YAML files for syntax errors |
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
def get_index(index_name) | |
index_obj = self.bucket.get_or_new(index_name) | |
index = GSet.new | |
# If resolving siblings... | |
if index_obj.siblings.length > 1 | |
index_obj.siblings.each { | obj | | |
if !obj.data.nil? | |
index.merge_json obj.data |
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
def merge(other) | |
self.members.merge other.members | |
end | |
def add(atom) | |
self.members.add atom | |
end | |
def include?(atom) | |
self.members.include? atom |
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
def put_index(index_name, key) | |
index = GSet.new | |
index.add(key) | |
object = self.bucket.new(index_name) | |
object.content_type = 'text/plain' | |
object.data = index.to_json | |
object.store(options={:returnbody => false}) | |
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
def put_index(index_name, key) | |
index = GSet.new | |
index.add(key) | |
object = self.bucket.new(index_name) | |
object.content_type = 'text/plain' | |
object.data = index.to_json | |
object.store(options={:returnbody => false}) | |
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
def get_index(index_name) | |
index_obj = self.bucket.get_or_new(index_name) | |
index = GSet.new | |
# If resolving siblings... | |
if index_obj.siblings.length > 1 | |
index_obj.siblings.each { | obj | | |
if !obj.data.nil? | |
index.merge_json obj.data |