Skip to content

Instantly share code, notes, and snippets.

View NiekPas's full-sized avatar

Niek van de Pas NiekPas

  • Utrecht, The Netherlands
View GitHub Profile
{"context":{"allowJs":false,"logLevel":20,"namespace":"jest-preset","package":"ts-jest","version":"28.0.2"},"message":"creating jest presets not handling JavaScript files","sequence":1,"time":"2022-05-11T08:33:01.791Z"}
{"context":{"allowJs":false,"logLevel":20,"namespace":"jest-preset","package":"ts-jest","version":"28.0.2"},"message":"creating jest presets not handling JavaScript files","sequence":2,"time":"2022-05-11T08:33:01.800Z"}
{"context":{"logLevel":20,"namespace":"Importer","package":"ts-jest","version":"28.0.2"},"message":"creating Importer singleton","sequence":3,"time":"2022-05-11T08:33:02.205Z"}
{"context":{"actualVersion":"28.1.0","expectedVersion":">=28.0.0 <29","logLevel":20,"namespace":"versions","package":"ts-jest","version":"28.0.2"},"message":"checking version of jest: OK","sequence":4,"time":"2022-05-11T08:33:02.220Z"}
{"context":{"logLevel":20,"namespace":"ts-jest-transformer","package":"ts-jest","version":"28.0.2"},"message":"created new transformer","sequence":5,"time":"2022-05-11T08:
@NiekPas
NiekPas / .vimrc
Created July 3, 2020 07:19
Vimrc
set tabstop=4
" Search options
set ignorecase
set smartcase
" Get around faster
nnoremap - :w<cr>
nnoremap s l
nnoremap l $
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
import * as React from 'react';
type InputType = 'text' | 'tel' | 'email' | 'password' | 'number';
type Input = 'textarea' | 'button' | InputType;
const button = () => <button />;
const textarea = () => <textarea />;
const other = (type: InputType) => React.createElement('input', { type });
const matchInput = (inputString: Input) => {
alias gs="git status"
alias ga="git add -A"
alias gc="git commit"
alias gl="git log"
alias gd="git diff"
alias gr="git reset"
alias gb="git --no-pager branch"
alias gch="git checkout"
function git_finalize() {
@NiekPas
NiekPas / .eslintrc.js
Created November 13, 2018 12:38
Preferred React/Redux eslint configuration
module.exports = {
"env": {
"browser": true,
"es6": true,
"jest": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
using System;
using System.Windows;
using System.IO;
using System.Text.RegularExpressions;
using Microsoft.Win32;
namespace HTMLEncoder
{
/// <summary>
/// Interaction logic for MainWindow.xaml
@NiekPas
NiekPas / McDonalds_storefinder_v2.js
Last active August 29, 2015 14:22
McDonalds storefinder
(function() {
alert('testing')
window.mcdStoreLocator = {};
// Simple JavaScript Templating
// John Resig - http://ejohn.org/ - MIT Licensed
(function(){
var cache = {};
mcdStoreLocator.createMicroTemplate = function createMicroTemplate(label, element) {
if (cache[label]) return cache[label];
# Script that finds submissions in earthporn.reddit.com with more than 1000 points and prints them.
# Used for a personal project.
import time
import praw
# Connecting to Reddit and setting user agent
r = praw.Reddit('r/earthporn monitor by u/niek_pas')
# Getting subreddit and storing in variable 'subreddit'
subreddit = r.get_subreddit('earthporn')
# Declaring list of already added submissions to ensure no duplicates