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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC1Q4P04BhLDdzHKQ1yWng/n7IR86s1WerMfgkg9D1CAhsIiQuEP0u55mzvKth14+giXGWs/qsVNI17q8bhp3XXAAMW6zpqBYlzhk+KQ2a7SAM9OmPik8jKaUirbIZN2daqMvntYV3Iu7IrQHFsd/YPNT50g8cnws5sNgqEdPOatNR9ZfApBlUTsyyJoIDz9ikACUR9vLEPJ+XuvRjB2EtULdW42c4rOx7NPOXXmF5SUsNerqr7LS0QgJyshENjnRg0imsN54sJ5V232Ck3m7ytVRX0EUtDoRxRsFHwFtIRaxQaFP5hZeUy+ADZpJr3qrqw5nsTfd5Gsp/xV6+A8AyH aurelian@3scale.net |
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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC1Q4P04BhLDdzHKQ1yWng/n7IR86s1WerMfgkg9D1CAhsIiQuEP0u55mzvKth14+giXGWs/qsVNI17q8bhp3XXAAMW6zpqBYlzhk+KQ2a7SAM9OmPik8jKaUirbIZN2daqMvntYV3Iu7IrQHFsd/YPNT50g8cnws5sNgqEdPOatNR9ZfApBlUTsyyJoIDz9ikACUR9vLEPJ+XuvRjB2EtULdW42c4rOx7NPOXXmF5SUsNerqr7LS0QgJyshENjnRg0imsN54sJ5V232Ck3m7ytVRX0EUtDoRxRsFHwFtIRaxQaFP5hZeUy+ADZpJr3qrqw5nsTfd5Gsp/xV6+A8AyH |
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
buff = "" | |
File.open('1.txt', 'r').each_line do |line| | |
if line =~ /^----- /i && buff != "" | |
puts "--> " + buff | |
puts "[ " + tags.join(", ") + " ]" | |
while rline= gets do | |
tag= rline.chomp! | |
print "--> " + tag | |
break if tags.include?(tag) | |
print " not okay.\n" |
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 can_haz_link?(link) | |
(/^\//.match(link) || Regexp.compile("^"+@base).match(link)) && !@collection.include?(link) | |
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
{% active_docs version: "1.0" %} | |
<div class='api-docs-wrap'></div> | |
<script> | |
$(function(){ ThreeScale.APIDocs.init([]); }); | |
</script> |
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
{ | |
"swagger":"2.0", | |
"info":{ | |
"description":"This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters", | |
"version":"1.0.0", | |
"title":"Swagger Petstore", | |
"termsOfService":"http://helloreverb.com/terms/", | |
"contact":{ | |
"email":"apiteam@wordnik.com" | |
}, |
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
Operation.prototype.do = function (args, opts, callback, error, parent) { | |
var options = (opts.parent)? this.parent.options : opts; | |
return this.execute(args, options, callback, error, parent); | |
}; |
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
{ | |
"swagger": "2.0", | |
"info": { | |
"version": "1.0.0", | |
"title": "Swagger Petstore", | |
"description": "A sample API that uses a petstore as an example to demonstrate features in the swagger-2.0 specification", | |
"termsOfService": "http://swagger.io/terms/", | |
"contact": { | |
"name": "Swagger API Team", | |
"email": "apiteam@swagger.io", |
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 'nokogiri-plist' | |
require 'pry' | |
olddoc = Nokogiri::PList(File.read("old.xml")) | |
newdoc = Nokogiri::PList(File.read("new.xml")) | |
oldtracks = olddoc["Tracks"].map{|id, track| track} | |
newdoc["Tracks"].each do | id, track | |
OlderNewer