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
| @Grapes([ | |
| @Grab("org.gebish:geb-core:3.0"), | |
| @Grab('io.github.bonigarcia:webdrivermanager:3.4.0'), | |
| @Grab('org.seleniumhq.selenium:selenium-chrome-driver:3.141.0'), | |
| ]) | |
| import io.github.bonigarcia.wdm.WebDriverManager | |
| import org.openqa.selenium.chrome.ChromeDriver | |
| WebDriverManager.chromedriver().setup() |
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
| #[test] | |
| fn iter_demo() { | |
| let v1 = vec![1, 2, 3]; | |
| let mut v1_iter = v1.iter(); | |
| // iter() returns an iterator of slices. | |
| assert_eq!(v1_iter.next(), Some(&1)); | |
| assert_eq!(v1_iter.next(), Some(&2)); | |
| assert_eq!(v1_iter.next(), Some(&3)); | |
| assert_eq!(v1_iter.next(), None); |
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 python | |
| # -*- coding: utf-8; py-indent-offset:4 -*- | |
| ############################################################################### | |
| # | |
| # Copyright (C) 2018 Daniel Rodriguez | |
| # | |
| # This program is free software: you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation, either version 3 of the License, or | |
| # (at your option) any later version. |
Most projects on GitHub have a main repository that's the focal point of activity. For example, the Example organization has the Example.com repository:
https://github.com/example/example.com
Developers of Example.com typically call this the 'upstream' repository. We'll come back to it in a moment.
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
| import re | |
| from cPickle import dump | |
| from requests import get | |
| DEFAULT_TICKERS = ['goog', 'aapl'] | |
| URL = 'http://www.sec.gov/cgi-bin/browse-edgar?CIK={}&Find=Search&owner=exclude&action=getcompany' | |
| CIK_RE = re.compile(r'.*CIK=(\d{10}).*') | |
| cik_dict = {} | |
| for ticker in DEFAULT_TICKERS: |
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
| <?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId>org.sillyweasel.addons.jqueryui</groupId> | |
| <artifactId>org.sillyweasel.addons.jqueryui</artifactId> | |
| <packaging>bundle</packaging> | |
| <version>0.9.9</version> | |
| <name>jqueryui</name> | |
| <organization> | |
| <name>Silly Weasel</name> |
NewerOlder