If you have many files of go test runs concat like so:
cat <path>/* > concat_tests.raw
Call: python t.py concat_tests.raw
If you have many files of go test runs concat like so:
cat <path>/* > concat_tests.raw
Call: python t.py concat_tests.raw
#!/usr/bin/env python3 | |
# pylint: disable=invalid-name | |
"""mbox-extract-attachments3 - Extract attachments from mbox files. | |
Good companion for Google Takeout https://takeout.google.com/settings/takeout | |
Modified by http://github.com/kellerza from | |
https://github.com/PabloCastellano/pablog-scripts/ | |
- Python3 & linter errors | |
- New Filenames |
from re import sub, search | |
from decimal import Decimal | |
# Not production ready | |
def convert(m): | |
r = 1.0 | |
if "£" in m: | |
r = 1.28 # Make sure to check this (conversion rate between pounds and usd) | |
z = 0 |
Run this in the console:
document.querySelectorAll('span.Details-content--closed').forEach((e)=>{e.click()})
From the creator of: unzip.dev 🚀
Open the console (Cmd + Option + J
/ ctrl+shift+j
)
$('video').playbackRate = 1.2
- will speed by 20%
/** | |
* Sample React Native App | |
* https://github.com/facebook/react-native | |
*/ | |
import React, { Component } from 'react' | |
import { AppRegistry, StyleSheet, Text, View, Navigator, ToolbarAndroid, TouchableHighlight } from 'react-native' | |
class reactgame extends Component { | |
render () { |
set /p id="(Reminder) Did you start a vm? and is it available in adb? " | |
start cmd /k react-native start | |
rem *** HACK ALERT: Sleep for 10 seconds *** | |
ping -n 10 127.0.0.1 > nul | |
start cmd /k react-native run-android | |
REM Might you want to visit unzip.dev ? |
func all(w http.ResponseWriter, r *http.Request) { | |
someText := "Some custom message for the redirect" | |
hj, ok := w.(http.Hijacker) | |
if !ok { | |
http.Error(w, "Webserver doesn't support hijacking", http.StatusInternalServerError) | |
return | |
} | |
conn, bufrw, err := hj.Hijack() | |
checkErr(w, err) |
function makemychoice() { | |
args = Array.prototype.slice.call(arguments); | |
return ( args[~~(args.length * Math.random())] ) + " was chosen."; | |
} | |
// Example: makemychoice("Go to run", "Go to swim", "Fix bug"); | |
// from the creator of unzip.dev |