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
package main | |
import ( | |
"fmt" | |
"log" | |
"sort" | |
"strings" | |
) | |
func cross(a []string, b []string) []string { |
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
Hey | |
Just checking in about this ? | |
On 1/7/19 2:36 PM, Abhishek Kona wrote: | |
> | |
> I just reset greenkeeper |
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
package main | |
import ( | |
"errors" | |
"fmt" | |
"log" | |
"net/http" | |
"sync" | |
) |
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
declare module "react-loadable" { | |
declare type LoadingProps = { | |
isLoading: boolean, | |
pastDelay: boolean, | |
timedOut: boolean, | |
retry: () => void, | |
error: ?Error, | |
}; | |
declare type CommonOptions = { |
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
/* | |
histogram [1,1,1,5] == | |
* | |
* | |
* * | |
========== | |
0123456789 | |
histogram [1,4,5,4,6,6,3,4,2,4,9] == | |
* |
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
class SuperActiveRecord < ActiveRecord | |
instance_methods.each |name| do .# not exact syntaxa | |
### IF THIS IS NOT POSSBILE override 10 most use actie record methods like | |
### new/find/where/find_by/update so on and so forth | |
original_method = instance_method(name) | |
define_method(name) do |*args| | |
check_if_allowed() | |
original_method.bind(self).call(*args)[[[[ | |
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
ABCDEFGHIJ, 3 | |
A E I | |
BDFHJ | |
C G | |
ABCDEFGHIJKLMNOPQ, 4 | |
A G M | |
B FH LN |
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
{ | |
"results" : [ | |
{ | |
"address_components" : [ | |
{ | |
"long_name" : "94114", | |
"short_name" : "94114", | |
"types" : [ "postal_code" ] | |
}, | |
{ |
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
/* | |
ABCDEFGHIJ, 3 | |
A E I | |
BDFHJ | |
C G | |
ABCDEFGHIJKLMN, 4 | |
A G M |
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
(defn square | |
"square of a number" | |
[a] | |
(* a a)) | |
(defn square_sum | |
"sum of square of 2 numbers" | |
[a b] | |
(+ (square a) (square b))) |
NewerOlder