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
########Exercise 2 (strcat_ba_test: 1 point). Complete the following function, strcat_ba(a, b), | |
#so that given two strings, a and b, it returns the concatenation of bfollowed by a | |
#(pay attention to the order in these instructions!).########### | |
def strcat_ba(a, b): | |
assert type(a) is str | |
assert type(b) is str | |
return(b + a) #Megan's Code |
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
mystery_string = "fuck you and your cat's cat. Catface" | |
#You may modify the lines of code above, but don't move them! | |
#When you Submit your code, we'll change these lines to | |
#assign different values to the variables. | |
#Add some code below that will count and print how many | |
#times the character sequence "cat" appears in mystery_string. | |
#For example, for the string above, it would print 2. | |
# |
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
var request = require('request'); | |
var moment = require('moment'); | |
const _ = require('lodash'); | |
const colors = require('colors'); | |
var btc_h = 15; | |
var eth_h = 15; | |
var etc_h = 15; |
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 <stdlib.h> /* exit */ | |
#include <unistd.h> /* read, write, close */ | |
#include <string.h> /* memcpy, memset */ | |
#include <sys/socket.h> /* socket, connect */ | |
#include <netinet/in.h> /* struct sockaddr_in, struct sockaddr */ | |
#include <netdb.h> /* struct hostent, gethostbyname */ | |
#include <stdio.h> | |
#include <sys/types.h> | |
#include <unistd.h> |
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
http://68.183.136.30:3000 |
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 | |
""" | |
Very simple REST centrak logging server in python. | |
Usage:: | |
./central_logging_server [<port>] | |
Send a GET request:: | |
curl http://localhost | |
Send a HEAD request:: | |
curl -I http://localhost | |
Send a POST request:: (this is how you log) |
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
#install tmux for 4 seperate terminals | |
#install docker | |
curl -sSL https://get.docker.com | sh | |
docker swarm init |
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
find . -name "*.rar" -exec unrar x -o+ {} \; | |
cp *.mkv ../Plex/TV/ |
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
hortinstein@cucumber.whatbox.ca:/home/hortinstein/files/ whatbox/ |
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
a0:02:dc:52:80:ce |