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 <cstdlib> | |
#include <cstdio> | |
int main(int argc, char* argv[]) | |
{ | |
int a,b,c,d,e,f,g,h; | |
FILE* fp; | |
fp = fopen("ipv6.txt","w"); |
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
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Data; | |
using System.Drawing; | |
using System.Linq; | |
using System.Text; | |
using System.Net; | |
using System.Net.Sockets; | |
using System.Windows.Forms; |
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
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Data; | |
using System.Drawing; | |
using System.Diagnostics; | |
using System.Linq; | |
using System.Net; | |
using System.Net.Sockets; | |
using System.Text; |
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
#!/bin/bash | |
for filename in $(find . -type f) | |
do | |
f_type=$(file -b $filename) | |
if [ "${f_type##* }" == "text" ] | |
then | |
echo "###################### FILE: ${filename} #######################" >> collated_code.txt | |
cat ${filename} >> collated_code.txt | |
echo "###################### END FILE ${filename} ####################" >> collated_code.txt |
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
<?php | |
/* User Test cases generated on: 2011-10-20 19:08:19 : 1319134099*/ | |
App::import('Model', 'User'); | |
class UserTestCase extends CakeTestCase { | |
var $fixtures = array('app.user'); | |
function startTest() { | |
$this->User =& ClassRegistry::init('User'); | |
} |
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
#!/bin/bash | |
# CONFIG | |
# DEBUG: Set this to 1 if you want debug info | |
debug=1 | |
lines=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
""" | |
GamePy CP Daemon | |
(CC-BY) Leo Adamek 2012 | |
""" | |
__author__ = 'Leo Adamek' | |
import BaseHTTPServer | |
from socket import gethostbyname, gethostname | |
import sys |
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
from random import randint as r | |
from random import shuffle | |
from time import time | |
from datetime import timedelta | |
def bogosort(d): | |
sorted = checkOrder(d) | |
while not sorted: | |
shuffle(d) |
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
# NumberGame.py - Most simple program | |
from random import randint | |
number_to_guess = randint(1,100) | |
guess = input('Enter a number between 1 and 100: ') | |
while not guess == number_to_guess: | |
if guess > number_to_guess: | |
print "Too High." |
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
# NumberGame.py - Improved Program | |
from random import randint | |
def get_guess(): | |
proper_input = False | |
while not proper_input: | |
guess_input = raw_input('Enter a number between 1 and 100: ') | |
try: | |
guess = int(guess_input) |
OlderNewer