Skip to content

Instantly share code, notes, and snippets.

Timo pixelkritzel

Block or report user

Report or block pixelkritzel

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View profiles.json
{
"globals" :
{
"alwaysShowTabs" : true,
"defaultProfile" : "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"initialCols" : 120,
"initialRows" : 30,
"keybindings" :
[
{
View gist:440cf8578af988fff1192c370bb5a301
Auf V6:
hugo: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by hugo)
hugo: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by hugo)
hugo: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.18' not found (required by hugo)
hugo: /usr/lib64/libstdc++.so.6: version `CXXABI_1.3.5' not found (required by hugo)
hugo: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by hugo)
Auf V7
hugo: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by hugo)
hugo: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by hugo)
View ready-steady-go.js
function ready(payload) {
const fns = []
let lastReturnValue = payload;
function steady(fn) {
fns.push(fn)
return {
steady, go
}
@pixelkritzel
pixelkritzel / index.html
Created Aug 11, 2018
Electron Fiddle Gist
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
</head>
<body>
<h1>Hello World!</h1>
<!-- All of the Node.js APIs are available in this renderer process. -->
We are using Node.js <script>document.write(process.versions.node)</script>,
@pixelkritzel
pixelkritzel / index.html
Created Aug 11, 2018
Electron Fiddle Gist
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
</head>
<body>
<h1>Hello World!</h1>
<!-- All of the Node.js APIs are available in this renderer process. -->
We are using Node.js <script>document.write(process.versions.node)</script>,
@pixelkritzel
pixelkritzel / index.html
Created Aug 11, 2018
Electron Fiddle Gist
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
</head>
<body>
<h1>Hello World!</h1>
<!-- All of the Node.js APIs are available in this renderer process. -->
We are using Node.js <script>document.write(process.versions.node)</script>,
View createArray.js
function createArray(length, value) {
return Array.apply(null, new Array(length)).map((i, index) => typeof value === 'function' ? value(i, index) : value)
}
createArray(10, (item, index) => ({ a: index }) )
createArray(10, 'lala')
View wtf.ts
type IItem = {
key: number,
text: string
}
const items: IItem[] = [{key: 0, text: ''}]
// it says type never[] isn't assignable to type [{ text: string}]
for (let index = 1; index < 11; index++) {
items.push({
View visually-hidden.css
.visuallyhidden:not(:focus):not(:active) {
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
border: 0;
padding: 0;
white-space: nowrap;
@pixelkritzel
pixelkritzel / extractKeys.js
Created Feb 24, 2016
Extract keys from string without delimiter
View extractKeys.js
const str = '__key__dfdsafadf[__index__]kjjkl'
const regx = /__(\w+)__/g
let keys = [];
let res;
while((res = regx.exec(str)) !== null) { console.log( keys.push(res[1]) ) }
You can’t perform that action at this time.