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
#!/bin/bash | |
mstring=$* | |
set -- $mstring | |
if [[ -z $mstring ]]; then | |
echo NULL | |
else | |
for a in $*; do |
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
<!doctype html> | |
<html class="no-js" lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Foundation | Welcome</title> | |
<link rel="stylesheet" href="css/foundation.css" /> | |
<script src="js/vendor/modernizr.js"></script> | |
<script src="js/vendor/jquery.js"></script> |
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
<!doctype html> | |
<html class="no-js" lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Foundation | Welcome</title> | |
<link rel="stylesheet" href="css/foundation.css" /> | |
<script src="js/vendor/modernizr.js"></script> | |
<script src="js/vendor/jquery.js"></script> |
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
from pandas import ExcelFile | |
from os import scandir | |
import matplotlib.pyplot as plt | |
import numpy as np | |
info_path = "C:/Users/johng/Downloads/chats/" | |
all_times = [] | |
def autolabel(rects, ax): |
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 socket | |
import pyautogui as pag | |
__author__ = 'johng' | |
pag.FAILSAFE = False | |
def getIPAddr(): | |
"""Creates a UDP Socket to the Google DNS in order to retrieve the host ip address""" |
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
<!doctype html> | |
<html class="no-js" lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Foundation | Welcome</title> | |
<link rel="stylesheet" href="css/foundation.css" /> | |
</head> | |
<body> | |
<div class="row"> |
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
from html.parser import HTMLParser | |
from os import makedirs, error as os_error | |
from os.path import exists | |
from pymsgbox import alert, prompt, confirm | |
from re import findall, search, IGNORECASE | |
from sre_constants import error as sre_error | |
from sys import winver | |
from time import sleep, strftime | |
from urllib.error import HTTPError, URLError | |
from urllib.parse import urlparse |
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
from html.parser import HTMLParser | |
from os import makedirs, error as os_error | |
from os.path import exists | |
from pymsgbox import alert, prompt, confirm | |
from re import findall, search, IGNORECASE | |
from sre_constants import error as sre_error | |
from sys import winver | |
from time import sleep, strftime | |
from urllib.error import HTTPError, URLError | |
from urllib.parse import urlparse |
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
function makeGrid(imageIds, size, page, gridClass = '.GRID_CLASS') { | |
if ($(gridClass).length != 1 || size[0] > 4 || size[0] < 1) // Check that there is only one container and that the number of columns is 1-4 | |
return null; | |
let idsAsString = imageIds.map(id => `<img src="img/img.jpg" alt="${id}">`), // Maps list of ids to string template. | |
x = size[0], // Row size | |
y = size[1], // Column size | |
pageSize = x * y, // Grid size | |
pages = (pageSize < idsAsString.length) ? | |
Math.ceil(idsAsString.length / pageSize) : 0, // Number of pages needed |
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
from functools import reduce | |
from operator import itemgetter as get | |
from sys import argv, maxsize as max_int | |
from itertools import groupby as by | |
class CSVEditor: | |
"""CSV Editor Class | |
A generic solution for filtering, grouping, and sorting a csv file by two fields | |
Creates new csv file in the same directory as file_path using the naming template: '[filename] - edited.csv' |