Skip to content

Instantly share code, notes, and snippets.

View ppsirius's full-sized avatar
🤙

Piotr Pupczyk ppsirius

🤙
View GitHub Profile
@ppsirius
ppsirius / docsAgainstGravity.js
Last active May 20, 2019 17:40
Documentary movies from "Mileniuem Docs Against Gravity"
// https://mdag.pl/16/en/warszawa/movies
const getTitles = () => {
const elements = document.querySelectorAll('.box-entry-title')
const titles = [...elements].map(e => e.innerHTML)
copy(titles)
}
// 2019
@ppsirius
ppsirius / check.js
Created March 28, 2018 10:09
WebGL get MAX_TEXTURE_SIZE
WebGLRenderingContext.MAX_TEXTURE_SIZE
@ppsirius
ppsirius / function.js
Created March 27, 2018 14:20
Replace a the an
function strip(string) {
return string.replace(/^(a |the |an )/i, '').trim();
}
@ppsirius
ppsirius / safari.css
Created March 1, 2018 09:32
Safari border-radius + overflow: hidden + CSS transform fix
// Add on element with overflow
-webkit-mask-image: -webkit-radial-gradient(white, black);
git reset $(git commit-tree HEAD^{tree} -m "init")
pbcopy < ~/.ssh/id_rsa.pub
cat ~/.ssh/id_rsa.pub
@ppsirius
ppsirius / search.js
Last active October 26, 2017 20:37
search warez link by hosting
let sortedLinkByHosting = [];
let elements = document.querySelectorAll('td .code');
elements.forEach(key => {
let link = key.innerText;
if(link.includes('http')) {
if(link.includes('catshare')) {
sortedLinkByHosting.push(link);
}
}
#!/bin/sh
#change your user name
#userName="Tomasz Milosz <[email protected]>"
userName=$(git config --get user.name)
userEmail=$(git config --get user.email)
userString=$userName" <"$userEmail">"
#Do not change anything below this line
@ppsirius
ppsirius / forEach_shim.js
Created September 19, 2017 20:10
Fix for IE awsome browser
/*
* forEach Polyfill
*
* 2015-12-27
*
* By Feifei Hang, http://feifeihang.info
* Public Domain.
* NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
*/
'use strict';
let instance = null;
class Viewports {
constructor() {
if(!instance){
instance = this;
}
this.isMobile = false;
this.init();