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
from arcpy import da | |
import os | |
inTable = arcpy.GetParameterAsText(0) | |
fileLocation = arcpy.GetParameterAsText(1) | |
with da.SearchCursor(inTable,['DATA','ATT_NAME']) as cursor: | |
for row in cursor: | |
binaryRep = row[0] | |
fileName = row[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
(Map.h) | |
#ifndef HEADER_MAP | |
#define HEADER_MAP | |
class Map { | |
public: | |
Map(uint8_t walls_bmp[8]); | |
uint8_t walls[8]; | |
void draw(Adafruit_BicolorMatrix matrix); | |
}; |
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 'aws/s3' # gem name is 'aws-sdk' | |
class BucketSyncService | |
attr_reader :from_bucket, :to_bucket, :logger | |
attr_accessor :debug | |
DEFAULT_ACL = :public_read | |
# from_credentials and to_credentials are both hashes with these keys: | |
# * :aws_access_key_id |
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
def print_triangle(size) | |
print_top_row_of_triangle(size) | |
return if size <= 1 | |
print_middle_section_of_triangle(size) | |
print_bottom_of_triangle(size) | |
end |
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
def print_triangle(size) | |
print_top_row_of_triangle(size) | |
return if size <= 1 | |
print_middle_section_of_triangle(size) | |
print_bottom_of_triangle(size) | |
end |
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
module RubyBBCode | |
def self.parse_youtube_id(url) | |
#url = "http://www.youtube.com/watch?v=E4Fbk52Mk1w" | |
url =~ /[vV]=([^&]*)/ | |
id = $1 | |
if id.nil? |
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
module RubyBBCode | |
class TagInfo | |
def initialize(tag_info, tags) | |
@tag_data = find_tag_info(tag_info) | |
@tags = tags | |
@tag = @tags[@tag_data[:tag].to_sym] unless @tag_data[:tag].nil? | |
end | |
def [](key) | |
@tag_data[key] |
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
module RubyBBCode | |
class TagInfo | |
def initialize(tag_info, tags) | |
@tag_data = find_tag_info(tag_info) | |
@tags = tags | |
@tag = @tags[@tag_data[:tag].to_sym] unless @tag_data[:tag].nil? | |
end | |
def [](key) | |
@tag_data[key] |
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
module RubyBBCode | |
class TagInfo | |
def initialize(tag_info, tags) | |
@tag_data = find_tag_info(tag_info) | |
@tags = tags | |
@tag = @tags[@tag_data[:tag].to_sym] unless @tag_data[:tag].nil? | |
end | |
def [](key) | |
@tag_data[key] |
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
module RubyBBCode | |
class TagInfo | |
def initialize(tag_info, tags) | |
@tag_data = find_tag_info(tag_info) | |
@tags = tags | |
@tag = @tags[@tag_data[:tag].to_sym] unless @tag_data[:tag].nil? | |
end | |
def [](key) | |
@tag_data[key] |
OlderNewer