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
diff --git a/jobs/atc/spec b/jobs/atc/spec | |
index 353b8efa..c4dcbcba 100644 | |
--- a/jobs/atc/spec | |
+++ b/jobs/atc/spec | |
@@ -467,6 +467,22 @@ properties: | |
Environment name to specify for errors emitted to Yeller. | |
default: "" | |
+ datadog.agent_host: | |
+ description: | |
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 | |
require 'json';F=%w{data input};H=File.read($0);#F.map!{|x|"#{x}s"} | |
y=H[29...33];t='%s.%s';F.map!{#"eval"#{eval"#{:eval}"}";Array[*y*t] | |
|_|eval"#{y.upcase}.load '#{eval"#{H[54...63]} '#{t%[_,y]}'"}'"}#_# | |
a=Array[*F[0]][0];V=t.gsub(/\./,'_')%[a[0][0..6],a[1][0].keys[0]]#m | |
I=H[20...27];define_method(:m){|q,_,o,_,p|;eval"#{I} 'date'"#{I} "! | |
k=p[0][0..8];x=F[1]["#{k}s"]*p[1];h,d=o[1],_[1];*s,_=F[1].to_a#2**5 | |
s,e=s.map{|_|DateTime.parse _[1]};j=(e-s).to_i;i=(3.0*(e-s-j)*2**5) | |
x+=(d.eql?(250)?1500:2*h+5*d+i.to_i+d);{V=>q[1],#Date.new(j-s-e)*24 | |
:"total_#{p[0][10..-1]}"=>x}};r=a[1].map{|👿|m(*👿)}#{a:"SHyx0rmZ"} |
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
resources: | |
- name: my-image | |
type: docker-image | |
source: | |
repository: example/my-image | |
- name: my-base-data | |
type: git | |
source: | |
uri: git://example.com/base.git | |
- name: my-test-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
module Editor.Widget exposing (Widget, Msg, init, update, view) | |
import Html | |
import Html.Events | |
import Markdown | |
type State | |
= Write | |
| Preview |
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
function bencode_parse(d){var x={pv:function(d){var s=d.slice(1);switch(d[0]){case'd':return x.pd(s,{});case'i':return x.pi(s,'e');case'l':return x.pl(s,[]);default:return x.ps(d);}},pd:function(d,o){if(d[0]=='e'){return[o,d.slice(1)];}var k=x.ps(d);var v=x.pv(k[1]);o[k[0]]=v[0];return x.pd(v[1],o);},pi:function(d,p){var o=d.indexOf(p);return[parseInt(d.slice(0,o)),d.slice(o+1)];},pl:function(d,a){if(d[0]=='e'){return[a,d.slice(1)];}var e=x.pv(d);a.push(e[0]);return x.pl(e[1],a);},ps:function(d){var l=x.pi(d,':');return[l[1].slice(0,l[0]),l[1].slice(l[0])];}};return x.pv(d)[0];}function bencode_generate(d){var x={gv:function(d){switch(typeof(d)){case'object':if(Array.isArray(d)){return x.gl(d);}else{return x.gd(d);}case'number':return x.gi(d);default:return x.gs(d);}},gd:function(d){return 'd'+Object.keys(d).reduce(function(r,e){return r+x.gs(e)+x.gv(d[e]);},'')+'e';},gi:function(d){return 'i'+d+'e';},gl:function(d){return 'l'+d.reduce(function(r,e){return r+x.gv(e);},'')+'e';},gs:function(d){return d.length+ |
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(demo). | |
-export([ main/0, test/1 ]). | |
main() -> | |
Module = erl_syntax:attribute( | |
erl_syntax:atom(module), | |
[ | |
erl_syntax:atom("lang") | |
] | |
), |
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(ls). | |
-export([main/1,name_server/3,entry_builder/2]). | |
-include_lib("kernel/include/file.hrl"). | |
-record(list_entry, { name, permissions, links, user, group, size, modified }). | |
main([ Arguments ]) -> | |
Entries = list(atom_to_list(Arguments)), | |
Lengths = determine_lengths(Entries, [ #list_entry.links, #list_entry.user, #list_entry.group, #list_entry.size ]), |
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 (redis_hash). | |
-export ([setall/3,getall/2]). | |
-include ("redis_types.hrl"). | |
setall(Server, Name, Hash) when is_record(Server, redis_server), is_record(Hash, redis_hash) -> | |
ok = redis_connection:send(Server, "MULTI"), | |
"OK" = redis_parser:parse_response(redis_connection:recv(Server)), | |
setall(Server, Name, Hash#redis_hash.entries). | |
setall(Server, Name, []) -> |
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
namespace std { | |
template <> | |
struct default_delete<fstream> { | |
void operator()(fstream *ptr) { | |
if (ptr != nullptr && ptr->is_open()) { | |
ptr->close(); | |
} | |
delete ptr; | |
} |
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
template <typename T> | |
struct __stripper { | |
using type = T; | |
}; | |
template <typename T> | |
struct ___stripper<std::reference_wrapper<T>> { | |
using type = T&; | |
}; |
NewerOlder