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 Point{ | |
| public: | |
| // Public member functions here | |
| int getX(){ | |
| return this.x; | |
| } | |
| // Other accessors here | |
| // There are two ways to go about checking equality. |
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> | |
| #include <stdlib.h> | |
| #include <stdbool.h> | |
| #include <string.h> | |
| #include <limits.h> | |
| int countBraces(char *str); | |
| int main (int argc, char const *argv[]) | |
| { |
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
| [paxswill@apollo:~]$ which gcc-4.2 | |
| [paxswill@apollo:~]$ brew install -vvd mercurial | |
| ==> Downloading http://mercurial.selenic.com/release/mercurial-2.1.2.tar.gz | |
| Already downloaded: /Users/paxswill/Library/Caches/Homebrew/mercurial-2.1.2.tar.gz | |
| /usr/bin/tar xf /Users/paxswill/Library/Caches/Homebrew/mercurial-2.1.2.tar.gz | |
| ==> make PREFIX=/usr/local/Cellar/mercurial/2.1.2 build | |
| make PREFIX=/usr/local/Cellar/mercurial/2.1.2 build | |
| python setup.py build | |
| running build | |
| running build_mo |
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
| # | |
| # Script to remove junk from Windows and OS X | |
| # | |
| ### Not set up to run as root. Advised not to do this. ### | |
| #### Variables #### |
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
| HOMEBREW_VERSION: 0.9 | |
| HEAD: 863292fc7325791b751bd6c3657b4c14a77a5e28 | |
| HOMEBREW_PREFIX: /usr/local | |
| HOMEBREW_CELLAR: /usr/local/Cellar | |
| CPU: 8-core 64-bit sandybridge | |
| OS X: 10.7.4 | |
| Kernel Architecture: x86_64 | |
| Xcode: 4.3.2 | |
| GCC-4.0: N/A | |
| GCC-4.2: N/A |
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
| HOMEBREW_VERSION: 0.9.2 | |
| HEAD: cd77baf2e2f75b4ae141414bf8ff6d5c732e2b9a | |
| HOMEBREW_PREFIX: /usr/local | |
| HOMEBREW_CELLAR: /usr/local/Cellar | |
| CPU: 8-core 64-bit core2 | |
| OS X: 10.7.4-i386 | |
| Xcode: 4.4 | |
| CLT: 4.4.0.0.1.1249367152 | |
| GCC-4.0: N/A | |
| GCC-4.2: N/A |
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 <fstream> | |
| #include <iostream> | |
| #include <string> | |
| using namespace std; | |
| int main(int argc, char ** argv) { | |
| /* | |
| * File streams are used like standard input/output streams are used, with | |
| * the insertion/extraction operators. |
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 <fstream> | |
| #include <string> | |
| #include <iostream> | |
| using namespace std; | |
| int main(int argc, char** argv) { | |
| ifstream inFile("data.txt"); | |
| while(!inFile.eof()) { | |
| string firstName, lastName, homeTown; |
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
| { | |
| "metadata": { | |
| "name": "Virginia Cities" | |
| }, | |
| "nbformat": 3, | |
| "nbformat_minor": 0, | |
| "worksheets": [ | |
| { | |
| "cells": [ | |
| { |
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 Queens | |
| { | |
| public static void main(String args[]) | |
| { | |
| char[][] chessboard = {{'X','X','X','X','X','X','X','X'}, | |
| {'O','O','O','O','O','O','O','O'}, | |
| {'O','O','O','O','O','O','O','O'}, | |
| {'O','O','O','O','O','O','O','O'}, | |
| {'O','O','O','O','O','O','O','O'}, | |
| {'O','O','O','O','O','O','O','O'}, |