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
| #include <stdio.h> | |
| int main() { | |
| int i, j; | |
| for (i = 1; i <= 100; i++) { | |
| j = 0; |
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
| #include "iostream" | |
| #include "vector" | |
| #include "math.h" | |
| using namespace::std; | |
| inline void generate_sieve(vector<int> &sieve) { | |
| long long int top = 1000000000; |
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
| class IntWrapper(int): | |
| ''' int wrapper class. Example for use of __new__().''' | |
| _valmod5 = None | |
| def __new__(cls, value): | |
| ''' Do something to differentiate from int.''' | |
| self = int.__new__(cls, value) # create an immutable | |
| return self |
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
| public class AsyncHelloWorld { | |
| public static void main(String[] args) { | |
| Thread InterfaceExample = new Thread(new PrintString("Thread 1")); | |
| Thread ThreadExample = new PrintStringThread("Thread 2"); | |
| InterfaceExample.start(); |
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
| Finding solace in words, in hope tailored. | |
| Seeking faith in ability, in searching for a shroud, | |
| to veil over what the eyes can see. | |
| A guise to calm the restless mind, to soothe ego. | |
| A mask over a white face, a scared soul. | |
| Confidence shattered, finding solace in unreal pleasures. | |
| A mind wasted, a heart lost. | |
| Permanent waves, soon forgotten. | |
| The elements come together and then vanish, | |
| for progress is what mattered, |
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
| \definecolor{blueblack}{rgb}{0.0,0.0,0.3} | |
| \hypersetup{colorlinks,breaklinks,linkcolor=blueblack,urlcolor=blueblack,anchorcolor=blueblack,citecolor=blueblack} |
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
| # -*- coding: utf-8 -*- | |
| """ | |
| Builds epub book out of Paul Graham's essays: http://paulgraham.com/articles.html | |
| Author: Ola Sitarska <ola@sitarska.com> | |
| Copyright: Licensed under the GPL-3 (http://www.gnu.org/licenses/gpl-3.0.html) | |
| This script requires python-epub-library: http://code.google.com/p/python-epub-builder/ | |
| """ |
NewerOlder