Skip to content

Instantly share code, notes, and snippets.

View kraag22's full-sized avatar

Martin Bartusek kraag22

View GitHub Profile
@kraag22
kraag22 / test.js
Created March 11, 2019 08:23
greedy regexp matching
const getFirstSub = str => {
if (str.length == 0) {
return {}
}
let subLength = 1
if (str[1] === '*') {
subLength = 2
}
const sub = str.substr(0, subLength)
@kraag22
kraag22 / gist:6007883
Created July 16, 2013 11:23
not working machine - simplified log from Process Monitor
ntdll.dll - SUCCESS
wow64.dll - SUCCESS
wow64win.dll - SUCCESS
wow64cpu.dll - SUCCESS
kernel32.dll - SUCCESS
user32.dll - SUCCESS
apisetschema.dll - SUCCESS
KernelBase.dll - SUCCESS
gdi32.dll - SUCCESS
advapi32.dll - SUCCESS
@kraag22
kraag22 / gist:6007876
Created July 16, 2013 11:22
working machine - simplified log from Process Monitor
ntdll.dll - SUCCESS
wow64.dll - SUCCESS
wow64win.dll - SUCCESS
wow64cpu.dll - SUCCESS
kernel32.dll - SUCCESS
user32.dll - SUCCESS
apisetschema.dll - SUCCESS
KernelBase.dll - SUCCESS
gdi32.dll - SUCCESS
advapi32.dll - SUCCESS