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
<!-- | |
create a form that submits: | |
first name | |
last name | |
email address | |
password | |
to http://posttestserver.com/post.php via post method. | |
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
const dgram = require('dgram'); | |
const server = dgram.createSocket('udp4'); | |
server.on('error', (err) => { | |
console.log(`server error:\n${err.stack}`); | |
server.close(); | |
}); | |
server.on('message', (msg, rinfo) => { | |
console.log(`server got: ${msg} from ${rinfo.address}:${rinfo.port}`); |
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
ssh-keygen | |
cat ~/.ssh/id_rsa.pub |
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
CREATE TABLE `issue_log` ( | |
`id` INT NOT NULL AUTO_INCREMENT, | |
`app_id` INT NOT NULL, | |
`test_id` INT NOT NULL , | |
`sr_no` INT NULL , | |
`issue_name` VARCHAR(255) NOT NULL , | |
primary key (id) | |
); | |
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 assignX(RedBlackNode *t, int i) { | |
t->x = (t->left == nullNode)?i:assignX(t->left,i); | |
return (t->right == nullNode)?(t->x)+1:assignX(t->right,t->x+1); | |
} | |
void assignY(RedBlackNode *t, int i) { | |
if (t != nullNode){ | |
t->y = i; | |
assignY(t->right, i-1); | |
assignY(t->left, i-1); |
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
def confirm(forms, rule): | |
wtup = rule[0] | |
maintup = rule[1] | |
if len(forms) != len(wtup): | |
return False | |
dict1 = {} | |
for index,form in enumerate(forms): | |
if maintup[index]: |
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
public void addAtEnd(String s) { | |
if (top == null) { | |
top = new Node (s, null); | |
return; | |
} | |
Node temp = top; | |
while (temp.getNext() != null) { | |
temp = temp.getNext(); | |
} |
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
<!-- filters.svg --> | |
<svg width="1" height="1" version="1.1" | |
xmlns="http://www.w3.org/2000/svg" | |
xmlns:xlink="http://www.w3.org/1999/xlink"> | |
<defs> | |
<filter id="gaussian_blur"> | |
<feGaussianBlur in="SourceGraphic" stdDeviation="2" /> | |
</filter> | |
<filter id="sepia"> |