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
#!/usr/bin/env python | |
class Scheduler(): | |
event = "" | |
dow = "" | |
dow_list = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", | |
"Friday", "Saturday"] | |
def __init__(self, event, dow): |
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
class account(): | |
""" This is a class that defines bank accounts | |
""" | |
MIN_DEPOSIT_AMOUNT=1.00 | |
MIN_INITIAL_BALANCE_AMT=10.00 | |
account_number="" | |
opening_branch="" | |
balance=0.0 | |
accountholder="" | |
def __init__(self,**kwargs): |
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 <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#define MAXSTRINGLEN 20 | |
typedef struct node { | |
int id; | |
char * 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
#include <stdio.h> | |
#include <errno.h> | |
#define MAXSTRINGSIZE 256 | |
#define MAXRECSIZE 1024 | |
int main(void) { | |
FILE * fp; | |
FILE * outfp; |
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> | |
bool is_palindrome(char * word) { | |
char *p, *t; | |
for (p=word; *p!='\0'; p++); | |
for (t=word; p--; p>=t) { | |
if (*p==*t) { | |
t++; | |
p--; | |
} |
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
dist: | |
g++ -g -o complex $(SOURCES) | |
clean: | |
rm complex | |
SOURCES = complex.cpp \ | |
main.cpp |
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 -u a/setup.py b/setup.py | |
--- a/setup.py 2013-11-08 16:22:30.000000000 +0000 | |
+++ b/setup.py 2013-11-08 16:22:30.000000000 +0000 | |
@@ -23,14 +23,7 @@ | |
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |
# SOFTWARE. | |
-# Attempt to use currently-installed setuptools first | |
-try: | |
- from setuptools import setup, find_packages |
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
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* |
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
int main() { char* str = "We are discovering the future"; return 0; } |
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
### | |
# Companyname Custom config | |
### | |
## LANcache config ## | |
server: | |
# Steam | |
local-zone: "steampowered.com." transparent |
OlderNewer