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
#!/usr/bin/env python | |
"""Script for joining PDF into image output. | |
Prerequisite: | |
# This takes a bit of time! | |
brew install poppler | |
pipenv install pillow pdf2image | |
I use this for converting PnP pdf into image to be uploaded to TTS. |
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
""" | |
Code for exporting instance count for last month | |
Setup: | |
pip install --upgrade google-cloud-monitoring | |
DOC: | |
https://cloud.google.com/monitoring/docs/reference/libraries#client-libraries-usage-python | |
Code snippet: | |
https://cloud.google.com/monitoring/custom-metrics/reading-metrics |
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
# Remap F1 to backtick (my backtick is broken, use F1 instead) | |
# https://apple.stackexchange.com/questions/283252/how-do-i-remap-a-key-in-macos-sierra-e-g-right-alt-to-right-control | |
# https://developer.apple.com/library/archive/technotes/tn2450/_index.html | |
hidutil property --set '{"UserKeyMapping": | |
[{"HIDKeyboardModifierMappingSrc":0x70000003a, | |
"HIDKeyboardModifierMappingDst":0x700000035}] | |
}' |
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
"""Tutorial of example graph based on TFv1 | |
We need to do a bunch of tfv1 summary, which is what is happening. | |
Graph output: https://snipboard.io/7tjoS2.jpg | |
Refactored from | |
https://towardsdatascience.com/understanding-fundamentals-of-tensorflow-program-and-why-it-is-necessary-94cf5b60e255 |
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
-- Extracted from https://steamcommunity.com/sharedfiles/filedetails/?id=1180142950 | |
function onLoad() | |
createActivationButton() | |
end | |
--Activated by button press | |
function click_fixDeck() | |
local func_findDeck = function(o) return o.tag=="Deck" end | |
local deckList = findInRadiusBy(self.getPosition(), 2, func_findDeck) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
// Sample trace_quickstart traces incoming and outgoing requests. | |
package main | |
import ( | |
"fmt" | |
"log" | |
"net/http" | |
"os" | |
"contrib.go.opencensus.io/exporter/stackdriver" |
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
""" A snippet for calculating longest subsequence of list of words | |
""" | |
import re | |
# copy and paste seperation into here | |
INPUT = filter(len, """ | |
fuad-not-distressed | |
arrows_counterclockwise | |
""".split('\n')) |
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
""" | |
This is scripts.py from | |
https://pypi.org/project/treemap/#description | |
TODO: update API to talk to latest coverage version | |
""" | |
import operator | |
import random | |
import colorsys |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.