- XGBoost Extreme Gradient Boosting of datasets
- Vowpal Wabbit Very fast non-parallelized ML aglorithms
- PERF Useful for evaluating performance of model
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
############################################################################ | |
# # | |
# ------- Useful Docker Aliases -------- # | |
# # | |
# # Installation : # | |
# copy/paste these lines into your .bashrc or .zshrc file or just # | |
# type the following in your current shell to try it out: # | |
# wget -O - https://gist.githubusercontent.com/jgrodziski/9ed4a17709baad10dbcd4530b60dfcbb/raw/d84ef1741c59e7ab07fb055a70df1830584c6c18/docker-aliases.sh | bash | |
# # | |
# # Usage: # |
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 python3 | |
import os | |
from random import randint | |
HANGMANPICS = [''' | |
+---+ | |
| | | |
| | |
| | |
| |
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 | |
def product_k_consecutive(arr, k): | |
last = 1 # store last product | |
result = [] | |
for i, n in enumerate(arr): | |
acc = n*last | |
if i >= k: | |
div = arr[i-k] | |
if div != 0: |
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 bash | |
cat <<EOF | |
Usage: $0 [output-directory] | |
Generate self-signed certificates for testing. | |
Links: | |
https://www.wikihow.com/Be-Your-Own-Certificate-Authority |
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
function isArray(v) { return !!v && v.constructor === Array } | |
function isObject(v) { return !!v && v.constructor === Object } | |
function merge(target, obj, opt) { | |
// take care of null inputs | |
if (!isObject(target) && !isArray(obj) || !isObject(target) && !isArray(obj)) return obj | |
if (!(isArray(target) && isArray(obj) || isObject(target) && isObject(obj))) { | |
throw Error('mismatched types. must both be array or object') | |
} | |
opt = opt || {} |
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" | |
"os" | |
"os/exec" | |
"strings" | |
) | |
// Source loads variables defined in the path into the current environment |
Source: http://osxdaily.com/2010/03/24/when-and-how-to-reset-your-mac-system-management-controller-smc/
When and How to Reset Mac SMC (System Management Controller) Mar 24, 2010 - 133 Comments
How to Reset SMC on a Mac
NewerOlder