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 random | |
| def genName(): | |
| boyNames = {0: "Jack",1: "Andrew", 2: "Mike",3: "Terry",4: "Torvald", 5: "Gatsby"} | |
| girlNames = {0: "Alice", 1: "Hana", 2: "Clare", 3: "Janet", 4: "Daisy"} | |
| genderList = {0: "M", 1: "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
| import random | |
| def sample(items): | |
| randomIndex = random.randrange(len(items)) | |
| return items[randomIndex] | |
| def promptForGender(): | |
| genderList = ["male", "female"] |
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
| ctrl_interface=/var/run/wpa_supplicant | |
| ap_scan=0 | |
| network={ | |
| key_mgmt=IEEE8021X | |
| eap=PEAP | |
| pairwise=CCMP TKIP | |
| phase2="auth=MSCHAPV2" | |
| identity="<redacted>" | |
| password="<redacted>" | |
| priority=2 |
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
| char * readUUI() | |
| { | |
| //allocate 64bytes for usage | |
| size_t size = 64; | |
| char *str = (char*)malloc(size); | |
| if(str){ | |
| }else{ | |
| die("Mem allocate unsuccessful"); | |
| } |
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 void insert(int val){ | |
| //root case | |
| if(this.size == 1){ | |
| heap[ROOT] = val; | |
| this.size++; | |
| }else{ | |
| if(this.size >= this.maxSize){ | |
| //multiplying by two ensures a full (no null array out of bounds) next level of the heap | |
| int increment = maxSize * 2; | |
| int[] tmp = new int[maxSize + increment]; |
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
| package conway.highest.value; | |
| import conways.Conways; | |
| import java.util.Random; | |
| /** | |
| * Created by insidious on 4/5/16. | |
| * <p> |
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
| ;------------------------- | |
| ;BuildLst() | |
| ;------------------------ | |
| ;---Local Variables---- | |
| size: .BLOCK 2 ; size | |
| head: .BLOCK 2 | |
| stringrf: .BLOCK 2 ;the addr of the str from readSo | |
| next: .BLOCK 2 ;the addr where we can start putting stuff in the heap | |
| node: .BLOCK 2 | |
| ;---------------------- |
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 <unistd.h> | |
| #include <errno.h> | |
| #include <string.h> | |
| #include <sys/types.h> | |
| #include <netinet/in.h> | |
| #include <netdb.h> | |
| #include <arpa/inet.h> | |
| #include <sys/wait.h> |
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
| @namespace url(http://www.w3.org/1999/xhtml); | |
| @-moz-document domain("chan.sinister.ly") { | |
| * { | |
| font-family: "Droid Sans", "Source Sans Pro" !important; | |
| font-size: 10pt !important; | |
| } | |
| html,body, .extPanel, .panel, kbd, #bd *, #ft *, .yui-g *, .top-box, .top-box *, | |
| table, tr, td, .pagelist { | |
| background: #17181A !important; |
OlderNewer