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
package sitemap | |
import ( | |
"sync/atomic" | |
"fmt" | |
"net/http" | |
"io" | |
"log" | |
"sync" | |
"time" |
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
# How to Dual-Boot Arch Linux on my Lenovo t440 ThinkPad using a USB | |
## Overview | |
## From Boot Format to Factory Format | |
1. Open press **Win+R** to open up **Run** | |
2. Type **diskpart** and press **Enter** | |
3. `$ list disk` to list all available drives | |
4. `$ select disk x` (where X is the disk number of the USB drive) to select the disk to format | |
5. `$ clean` will wipe the drive selected (may need to run more than once if it fails) |
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
": [ | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"# Accessing Data within Pandas - Lab" | |
] | |
}, | |
{ | |
"cell_type": "markdown", |
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
$(cat $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
import argparse | |
import inspect | |
def describe(thing): | |
print(list(filter(lambda x: x[0] != "_", dir(thing)))) | |
def argify(*types): | |
""" |
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 https://stackoverflow.com/questions/11849562/how-to-save-the-output-of-a-console-logobject-to-a-file | |
(function(console){ | |
console.save = function(data, filename){ | |
if(!data) { | |
console.error('Console.save: No data') | |
return; | |
} |
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 functools import partial | |
def add(x, y): | |
return x + y | |
def mul(x, y): | |
return x * y |
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
# coding: utf-8 | |
from itertools import product | |
def logic(x, y, z): | |
""" | |
( | |
X OR (y AND z) = (x OR y) AND (x OR z) | |
AND | |
X AND (y OR z) = (x AND y) OR (x AND z) |
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
package main | |
import ( | |
"fmt" | |
"math" | |
"sort" | |
"strings" | |
) | |
func main() { |
OlderNewer