Skip to content

Instantly share code, notes, and snippets.

Sten Hougaard netsi1964

Block or report user

Report or block netsi1964

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
@netsi1964
netsi1964 / Planets.js
Last active Aug 9, 2019
Planets of our sunsystem
View Planets.js
{
"Mercury": {
"toSun": 57900000,
"toEarth": 91700000
},
"Venus": {
"toSun": 108200000,
"toEarth": 41400000
},
"Earth": {
@netsi1964
netsi1964 / emojis.json
Last active Aug 7, 2019
List of UTF-8 emoji codes and descriptions for them
View emojis.json
[
{
"code": [
"1f600"
],
"name": "grinning face"
},
{
"code": [
"1f603"
@netsi1964
netsi1964 / removeAnyStyling.js
Created Jul 31, 2019
Remove any styles from a website
View removeAnyStyling.js
Array.from(document.styleSheets).forEach(sheet => sheet.disabled = true);
Array.from(document.querySelectorAll('*')).forEach(ele => {
ele.style.cssText = '';
var before = getComputedStyle(ele, ':before');
Object.keys(before).forEach(a => {
try {before[a] = ''} catch(e) {}
});
var after = getComputedStyle(ele, ':after');
Object.keys(after).forEach(a => {
try {after[a] = ''} catch(e) {}
@netsi1964
netsi1964 / results.json
Last active Jul 28, 2019
Information om hvad uddannelser har givet i månedsløn efter 10 år
View results.json
{
"date": "2019-07-28T10:43:09.572Z",
"source": "https://www.dr.dk/nyheder/penge/se-hvad-du-kan-tjene-med-din-uddannelse",
"data": [
{
"direction": "Universitetsuddannelser",
"uddannelse": "Afrikastudier (kandidatuddannelse)",
"loen": -1,
"ledig": -1
},
@netsi1964
netsi1964 / generateSelectors.js
Last active Jun 2, 2019
Create list of selectors for all elements on a page
View generateSelectors.js
const html = [...document.querySelectorAll("*")]
.map(e => {
let html = "";
let ee = e,
id = "",
unique = false;
let selectors = [];
while (ee.parentNode && !id && !unique) {
const classes = [...ee.classList].sort().join(".");
const id = ee.getAttribute("id");
View Players.js
const players = [{"team":"FC Midtjylland","country":"Denmark","flag":"Denmark","name":"Lasse Heinze","age":28,"yearOfBith":1986,"position":"Goalkeeper","physique":{"height":"184","weight":"80"}},{"team":"FC Midtjylland","country":"Finland","flag":"Finland","name":"Tim Sparv","age":27,"yearOfBith":1987,"position":"Midtfield","physique":{"height":"194","weight":"84"}},{"team":"FC Midtjylland","country":"Nigeria","flag":"Nigeria","name":"Oluwafemi Ajilore","age":30,"yearOfBith":1984,"position":"Midtfield","physique":{"height":"182","weight":"73"}},{"team":"FC Midtjylland","country":"Denmark","flag":"Denmark","name":"Jim Larsen","age":29,"yearOfBith":1985,"position":"Defence","physique":{"height":"190","weight":"90"}},{"team":"FC Midtjylland","country":"Denmark","flag":"Denmark","name":"Jakob Poulsen","age":31,"yearOfBith":1983,"position":"Midtfield","physique":{"height":"182","weight":"75"}},{"team":"FC Midtjylland","country":"Sweden","flag":"Sweden","name":"Petter Andersson","age":29,"yearOfBith":1985,"position
@netsi1964
netsi1964 / Readme.md
Created Oct 20, 2018
Shortcuts for iOS 12
View Readme.md

Shortcuts for iOS 12

This is a collection of various usefull shortcuts for iOS 12.

Show in maps where photo was taken

Choose a photo and if any location data was inside photo the Apple Maps app will be open with a marker at that location.

@netsi1964
netsi1964 / dabblet.css
Created May 1, 2018
The first commented line is your dabblet’s title
View dabblet.css
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
@netsi1964
netsi1964 / vscode.extensions.txt
Created Apr 11, 2018
Visual Studio Code Extensions
View vscode.extensions.txt
code --install-extension Angular.ng-template
code --install-extension BriteSnow.vscode-toggle-quotes
code --install-extension cssho.vscode-svgviewer
code --install-extension DotJoshJohnson.xml
code --install-extension eamodio.gitlens
code --install-extension EditorConfig.EditorConfig
code --install-extension eg2.tslint
code --install-extension formulahendry.auto-close-tag
code --install-extension formulahendry.auto-rename-tag
code --install-extension formulahendry.code-runner
@netsi1964
netsi1964 / README.md
Last active Apr 11, 2018
Extract data from wiki-pedia
View README.md
You can’t perform that action at this time.