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
bronze Segment a = 22712 | |
bronze Segment b = 11558 | |
bronze Segment c = 7930 | |
bronze Segment d = 7903 | |
silver Segment a = 729 | |
silver Segment b = 1195 | |
silver Segment c = 1258 | |
silver Segment d = 4901 |
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
a b c d | |
Bronze: 13117, 7307, 5090, 5293 | |
Silver: 313, 490, 551, 2228 | |
Gold: 5, 6, 9, 297 | |
Platinum 1, 2, 2, 39 |
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
a b c d | |
Bronze: 13117, 7307, 5090, 5293 | |
Silver: 313, 490, 551, 2228 |
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
for OG_URL in `cat og_urls.txt` | |
do | |
curl -X POST \ | |
-F "id=$OG_URL" \ | |
-F "scrape=true" \ | |
"https://graph.facebook.com" | |
done |
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
;; then enter the text in that file's own buffer. |
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 bfs(children, element_to_find, level) | |
# unqued = children.shift() | |
unqued = children.pop() | |
if unqued == element_to_find | |
unqued | |
else | |
if unqued.is_a?(Array) | |
puts level | |
bfs(children + unqued, element_to_find, level + 1) | |
else |
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
string_to_order_id(Id) -> | |
<<Part:9/binary, _Rest/binary>> = crypto:md5(Id), | |
<<255,Part/binary>>. |
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
% Test in context of the running application. | |
before_suite() -> | |
meck:new(wapn_amazon_server, [unstick, passthrough]), | |
wapn_amazon_server:start_link(). | |
after_suite() -> | |
wapn_amazon_server:stop(), | |
meck:unload(wapn_amazon_server). | |
%% fetch_token() -> |
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
<%= gift_link_tag(@gift_link) do |l| %> | |
<% if @accepted %> | |
<% if @gift_unlocked %> | |
<%= image_tag "GiftingIcon#{l.type.capitalize}.png", :class => 'what' %> | |
<%= image_tag "wooga_logo.png", :class => 'from' %> | |
<% else %> | |
<%= image_tag "GiftingIcon#{l.alternative_type.capitalize}.png", :class => 'what' %> | |
<%= image_tag "wooga_logo.png", :class => 'from' %> | |
<% end %> | |
<div class="title">{{title}}</div> |
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
(setq mac-command-modifier 'meta) |