Skip to content

Instantly share code, notes, and snippets.

András Parditka andraaspar

Block or report user

Report or block andraaspar

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 prettier.config.js
module.exports = {
trailingComma: 'es5',
tabWidth: 4,
useTabs: true,
semi: false,
singleQuote: true,
jsxSingleQuote: true,
}
View web-timesheet.userscript.js
// ==UserScript==
// @name Web Timesheet
// @namespace andraaspar
// @version 0.3.2
// @description Tweaks.
// @author AP
// @match http://na1.replicon.com/ovitas/*
// @run-at document-idle
// @require https://code.jquery.com/jquery-3.2.1.slim.min.js
// @grant GM.setValue
View hackernews.userscript.js
// ==UserScript==
// @name HN
// @namespace andraaspar
// @version 0.1.1
// @description Colors visited links
// @author AP
// @match https://news.ycombinator.com/*
// @run-at document-idle
// @grant GM_addStyle
// ==/UserScript==
View tslint.json
{
"defaultSeverity": "error",
"extends": [],
"jsRules": {},
"rules": {
"no-unused-variable": {
// Disallows unused imports, variables, functions and private class members.
"options": [true, { "ignore-pattern": "Vnode" }],
"severity": "warning"
},
View privacy-policy-en.txt
Word Owl App Privacy Policy
We do not collect any data from Word Owl. Any information you enter into the application is kept locally on your device.
View keybase.md

Keybase proof

I hereby claim:

  • I am andraaspar on github.
  • I am andraaspar (https://keybase.io/andraaspar) on keybase.
  • I have a public key ASBzZeAU5SEyVoTDG5cjWWxvcIA7YQiml6d6WDH3BOTPIQo

To claim this, I am signing this object:

View spotify-ratings.user.js
// ==UserScript==
// @name Spotify ratings
// @namespace 50edea63-8324-74b3-4019-81e0bdcd316a
// @version 0.0.3
// @description Loads my ratings for an album.
// @author AP
// @match https://open.spotify.com/*
// @grant GM.xmlHttpRequest
// @run-at document-idle
// @require https://code.jquery.com/jquery-3.2.1.slim.min.js
@andraaspar
andraaspar / IAttributes.ts
Last active Jul 20, 2017
Mithril helpers
View IAttributes.ts
import { TMithrilEvent } from './TMithrilEvent'
export interface IAttributes {
id?: string
class?: string
style?: string | {[_: string]: any}
href?: string
target?: string
download?: string,
type?: string
@andraaspar
andraaspar / webpack.debug.config.js
Last active Apr 19, 2017
Replace __WEBPACK_IMPORTED_MODULE_ in Webpack output
View webpack.debug.config.js
const baseConfig = require('./webpack.config.js')
const RawSource = require('webpack-sources').RawSource
baseConfig.plugins.push(function() {
this.plugin('emit', (compilation, callback) => {
compilation.chunks.forEach((chunk) => {
chunk.files.filter((filename) => /\.js$/.test(filename)).forEach((filename) => {
var source = compilation.assets[filename].source()
compilation.assets[filename] = new RawSource(source.replace(/__WEBPACK_IMPORTED_MODULE_/g, '__'))
You can’t perform that action at this time.