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 'json' | |
require 'httparty' | |
require 'csv' | |
output_counter = 0 | |
video_info = [] | |
(0..4).to_a.each do |p| | |
# puts "THIS IS PAGE #{p.to_i+1}" | |
user_id = "3045012" # substitute with the desired video ID |
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
#developed by Maile Thiesen | |
#!/usr/bin/ruby | |
require 'json' | |
require 'time' | |
require 'nokogiri' | |
library_path = ARGV[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
#Examples of isolating specific fields and their values | |
#duration = %x[mediainfo --Inform="General;%Duration/String3%" '#{filepath}'].chomp! | |
#format = %x[mediainfo --Inform="General;%Format%" '#{filepath}'].chomp! | |
#commerical_name = %x[mediainfo --Inform="General;%Format_Commercial_IfAny%" '#{filepath}'].chomp! | |
#RAW OUTPUT from running "mediainfo --Language=raw filepath" | |
General | |
CompleteName : /Volumes/Drobo #2 2009-2012/AMNH Video/2009/2009-10-21 IncaRoad/Capture Scratch/2009-10-21_IncaRoadPhotoExhibit_JS/541_0251_01.mov | |
Format : MPEG-4 | |
Format_Commercial_IfAny : XDCAM EX 35 |
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/ruby | |
dir1 = ARGV[0] | |
dir2 = ARGV[1] | |
dir1_arry = [] | |
dir2_arry = [] | |
dir1_files_list = %x[find #{dir1} -name "*"].split("\n") | |
dir2_files_list = %x[find #{dir2} -name "*"].split("\n") |
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
# A simple script that gets the user's public IP address and converts it to latitude and longitude coordinates using two APIs. ipify.org and ipapi.co | |
require "net/http" | |
ip = Net::HTTP.get(URI("https://api.ipify.org")) | |
puts "My public IP Address is: " + ip | |
convert_ip_to_lat_long = Net::HTTP.get(URI("https://ipapi.co/#{ip}/latlong/")) | |
puts "My lat long is: " + convert_ip_to_lat_long |
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
// I make no claim to this idea or code. I'm posting it here so I have easy access to it for my work -maile thiesen 8/4/2016 | |
// MultiExporter.js | |
// Version 0.1 | |
// Version 0.2 Adds PNG and EPS exports | |
// Version 0.3 Adds support for exporting at different resolutions | |
// | |
// Exports Illustrator artboards and/or layers as individual PNG or PDF files | |
// | |
// Copyright 2011 Matthew Ericson | |
// Comments or suggestions to [email protected] |
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
// This script was written by CarlosCanto. I make no claim to this idea or code. I'm posting it here so I have easy access to it for my work -maile thiesen 8/4/2016 | |
#target illustrator | |
// script.name = makeSelectedTextDynamic.jsx; | |
// script.description = makes SELECTED text Dynamic, creates Variables; | |
// script.required = one document with at leas one textFrame; | |
// script.parent = CarlosCanto // 2/15/13 | |
// script.elegant = 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
class Dog | |
attr_accessor :bark, :run | |
def initialize(bark, run) | |
@bark = bark | |
@run = run | |
end | |
end | |
class Pony | |
attr_accessor :gallop, :trot |
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
find . -type f | sed -e 's/.*\.//' | sed -e 's/.*\///' | sort -u |
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
from >> http://hints.macworld.com/article.php?story=20060209130749352 | |
ls -R | grep ":" | sed -e 's/://' -e 's/[^-][^\/]*\//--/g' -e 's/^/ /' -e 's/-/|/' |