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
| var key; | |
| for (key in myobj) { | |
| if (myobj.hasOwnProperty(key)) { | |
| console.log(key, myobj[key]); | |
| } | |
| } | |
| ////////////////////////////////////// |
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
| func update(a string, b string) (error) { | |
| return foo := model.MethodA(a) | |
| || bar := model.MethodB(b) | |
| || model.CheckStuffA(foo, bar) | |
| || model.CheckStuffB(foo, bar) | |
| || model.Update(foo, bar) | |
| } |
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 LetterCountI(str) { | |
| str = str.split(" "); | |
| var answer = ""; | |
| var mostRep = 1; | |
| for (i = 0; i < str.length; i++) | |
| if (eachWord(str[i]) > mostRep) { | |
| mostRep = eachWord(str[i]); | |
| answer = str[i]; | |
| } | |
| if (mostRep === 1) |
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
| extern crate afl; | |
| extern crate regex; | |
| fn main() { | |
| afl::read_stdio_string(|string| { | |
| let mut split = string.split('\n'); | |
| let s1 = match split.next() { | |
| Some(s) => s, | |
| None => return, |
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
| ### Keybase proof | |
| I hereby claim: | |
| * I am frewsxcv on github. | |
| * I am corey (https://keybase.io/corey) on keybase. | |
| * I have a public key ASDSf2dQ_6_LFKPzBvssH82uSaiFV_PgXfy9L-4Qv_NAWQo | |
| To claim this, I am signing this object: |
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 Stripe::APIOperations::Request::ClassMethods | |
| old_request = instance_method(:request) | |
| define_method(:request) do |*args| | |
| span = Datadog.tracer.trace('stripe.request', span_type: 'http') | |
| begin | |
| result = old_request.bind(self).call(*args) | |
| rescue Stripe::StripeError => e | |
| span.set_error(e) |
OlderNewer