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
| REGEDIT4 | |
| [HKEY_CURRENT_USER\Console\Git Bash] | |
| "ColorTable00"=dword:0036342E | |
| "ColorTable01"=dword:00A46534 | |
| "ColorTable02"=dword:00069A4E | |
| "ColorTable03"=dword:009B930B | |
| "ColorTable04"=dword:000000CC | |
| "ColorTable05"=dword:007B5075 | |
| "ColorTable06"=dword:0000A0C4 |
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
| int pins[] = {3, 5, 6, 9, 10, 11}; | |
| int cpins = 6; | |
| int val; | |
| void setup() { | |
| Serial.begin(9600); | |
| } | |
| void loop() { | |
| if (Serial.available() >= cpins) { |
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
| int pin = 11; | |
| int val; | |
| void setup() { | |
| Serial.begin(9600); | |
| } | |
| void loop() { | |
| if (Serial.available() > 0) { | |
| val = Serial.read(); |
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
| int seq[4040]; | |
| int dyn[4040]; | |
| int n; | |
| int lis() { | |
| // longest increasing subsequence | |
| // for sequence seq of length n | |
| // O(nlgn) | |
| // for longest decreasing subsequence, multiply elements by -1 |
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
| exp : then | |
| then : or "->" then | or | |
| or : and "||" or | and | |
| and : not "&&" and | not | |
| not : "!" atom | atom | |
| atom : "(" then ")" | bool | |
| bool : "#t" | "#f" |
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 <windows.h> | |
| #include <GL/glut.h> | |
| #include <cstdlib> | |
| #include <ctime> | |
| // menu item | |
| #define MENU_SMOOTH 1 | |
| #define MENU_FLAT 0 | |
| // Function prototypes |
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 math | |
| import random | |
| class Qubit: | |
| def __init__(self, a = 1, b = 0): | |
| '''Initialize a single qubit''' | |
| self.zero = complex(a) | |
| self.one = complex(b) | |
| def xgate(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
| private void CreateAd() | |
| { | |
| #if !DEBUG | |
| AdControl.TestMode = false; | |
| #endif | |
| AdControl ad = new AdControl( | |
| #if DEBUG | |
| "test_client", | |
| "Image480_80", |
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
| # Ignore file for Visual Studio 2008 | |
| # use glob syntax | |
| syntax: glob | |
| # Ignore Visual Studio 2008 files | |
| *.obj | |
| *.exe | |
| *.pdb | |
| *.user |
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
| private void PhoneApplicationPage_Loaded(object sender, RoutedEventArgs e) | |
| { | |
| settings = IsolatedStorageSettings.ApplicationSettings; | |
| Uri savedpage; | |
| if (settings.TryGetValue("page", out savedpage)) | |
| { | |
| Browser.Source = savedpage; | |
| } | |
| if (IsTrialMode()) |
NewerOlder