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
// load all data for the page by scrolling down | |
scrollDown = setInterval(function() {window.scrollTo(0,document.body.scrollHeight);}, 1000); | |
// fetch members | |
members = document.getElementsByClassName("oajrlxb2 g5ia77u1 qu0x051f esr5mh6w e9989ue4 r7d6kgcz rq0escxv nhd2j8a9 nc684nl6 p7hjln8o kvgmc6g5 cxmmr5t8 oygrvhab hcukyx3x jb3vyjys rz4wbd8a qt6c0cv9 a8nywdso i1ao9s8h esuyzwwr f1sip0of lzcic4wl gpro0wi8 oo9gr5id lrazzd5p") | |
// extract page name and url | |
let buffer = ''; | |
for(let i = 1; i < 10; i++) { | |
buffer += members[i].innerText.split(',')[0] + ", facebook.com" + members[i].attributes.href.value + "\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
// load all data for the page by scrolling down | |
scrollDown = setInterval(function() {window.scrollTo(0,document.body.scrollHeight);}, 1000); | |
// fetch relevant pages | |
pages = document.getElementsByClassName("oajrlxb2 g5ia77u1 qu0x051f esr5mh6w e9989ue4 r7d6kgcz rq0escxv nhd2j8a9 nc684nl6 p7hjln8o kvgmc6g5 cxmmr5t8 oygrvhab hcukyx3x jb3vyjys rz4wbd8a qt6c0cv9 a8nywdso i1ao9s8h esuyzwwr f1sip0of lzcic4wl gpro0wi8 oo9gr5id lrazzd5p"); | |
// extract page name and url | |
let buffer = ''; | |
for(let i = 1; i < pages.length; i++) { | |
buffer += pages[i].innerText.split(',')[0] + ", facebook.com" + pages[i].attributes.href.value + "\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
#include <iostream> | |
#include <set> | |
#include <map> | |
#include <unordered_map> | |
#include <unordered_set> | |
#include <algorithm> | |
#include <vector> | |
#include <fstream> | |
#include <ctime> | |
#include <tuple> |
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
from collections import defaultdict | |
def preprocess_word_list(words): | |
postings_list = defaultdict(list) | |
for word in words: | |
for index, char in enumerate(word): | |
postings_list[(char, index)].append(word) | |
postings_list[('.', index)].append(word) |
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 create_projected_cost_from_cost!(cost) | |
cost.flip.costs.create!( | |
amount_cents: cost.amount_cents, | |
description: cost.description, | |
source: cost.source, | |
creator: cost.creator, | |
account: cost.account, | |
kind: :projected | |
) | |
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
### Keybase proof | |
I hereby claim: | |
* I am ziyadm on github. | |
* I am ziyadmir (https://keybase.io/ziyadmir) on keybase. | |
* I have a public key whose fingerprint is 162E FC52 7631 91E5 BE2C DDB5 2848 F12A A6A9 D427 | |
To claim this, I am signing this object: |
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
diff --git a/demos/compute_demo.py b/demos/compute_demo.py | |
index e9f120f..37ad482 100644 | |
--- a/demos/compute_demo.py | |
+++ b/demos/compute_demo.py | |
@@ -36,7 +36,7 @@ sys.path.append(os.path.normpath(os.path.join(os.path.dirname(__file__), | |
from libcloud.common.types import InvalidCredsError | |
from libcloud.compute.types import Provider | |
-from libcloud.providers import get_driver | |
+from libcloud.compute.providers import get_driver |