Skip to content

Instantly share code, notes, and snippets.

View ajc2's full-sized avatar
🐌

Alex Craik ajc2

🐌
View GitHub Profile
@KaKi87
KaKi87 / awesome-android-x3Free.md
Last active May 20, 2024 23:39
Awesome list — Free, ad-free and in-app-free Android apps

Inspired by Awesome

Awesome

DISCLAIMER : this isn't really an awesome list, I don't care about guidelines, rules and etc. so I don't bother make a real repo and a real pull request.

About this list

This list uses the power of my advanced Google Play search engine to get some free, in-app-free and ad-free apps from it.

@y-ack
y-ack / AnalyzeLogs.ps1
Created November 10, 2017 05:12
SmileBASIC Source Log Graphing (files will be released slowly)
[Uri]$Domain = "http://scratch.smilebasicsource.com/chatlogs"
[Microsoft.PowerShell.Commands.HtmlWebResponseObject]$LogListDocument = Invoke-WebRequest $Domain
[Int32]$CurrentFileNum = 0
[Int32]$TotalFiles = $LogListDocument.Links.Count
[Regex]$DateRegexp = [Regex]'(\d\d-\d\d-\d\d)'
[Regex]$UserRegexp = [Regex]'\n *([a-zA-Z0-9_]+)\['
[String]$TAB = "`t"
[String]$UserData = "" # only users logged for each day
@y-ack
y-ack / Untitled.ps1
Created November 10, 2017 02:46
Very dirty script used to generate JSON archives of miiverse
#$MiiverseList = Invoke-RestMethod "https://pastebin.com/raw/4kxfQWSH"
#$MiiverseList = $MiiverseList -split "`r`n"
$MiiverseList = dir .\chat_links | ? name -match "^AY" | select name
#$MiiverseList = @("https://miiverse.nintendo.net/replies/AYMHAAADAAB2V0e0LQKOBA")
#$SaveDirectory = "$home/miiverse"
$SaveDirectory = "$home/snail_miiverse"
mkdir $SaveDirectory
mkdir "$SaveDirectory/images/"
@y-ack
y-ack / KlandScreenshot.ps1
Last active November 7, 2017 02:26
upload screenshots with powershell
function Upload-ToKland {
param([String]$bucket = "",
[String]$Image,
[String]$Url = "https://kland.smilebasicsource.com/uploadimage")
$ImageName = [regex]::Match($Image,"[^\\/]+\.(png|PNG|gif|GIF|jpe?g|JPE?G)").Value
$Image = [System.Text.Encoding]::GetEncoding("iso-8859-1").GetString([IO.File]::ReadAllBytes($Image))
$ImageType = [System.Web.MimeMapping]::GetMimeMapping($Image)
$boundary = [guid]::NewGuid().ToString()
@y-ack
y-ack / collapsingtoc.css
Last active November 14, 2017 19:01
org stuff
#toggle-table-of-contents {
display: none;
}
#toggle-table-of-contents ~ label {
text-decoration: underline;
}
#toggle-table-of-contents ~ label::before {
content: "hide ";
@CMCDragonkai
CMCDragonkai / regular_expression_engine_comparison.md
Last active May 10, 2024 05:22
Regular Expression Engine Comparison Chart

Regular Expression Engine Comparison Chart

Many different applications claim to support regular expressions. But what does that even mean?

Well there are lots of different regular expression engines, and they all have different feature sets and different time-space efficiencies.

The information here is just copied from: http://regular-expressions.mobi/refflavors.html

@hellerbarde
hellerbarde / latency.markdown
Created May 31, 2012 13:16 — forked from jboner/latency.txt
Latency numbers every programmer should know

Latency numbers every programmer should know

L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns
L2 cache reference ........................... 7 ns
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns             
Compress 1K bytes with Zippy ............. 3,000 ns  =   3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns  =  20 µs
SSD random read ........................ 150,000 ns  = 150 µs

Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs