Skip to content

Instantly share code, notes, and snippets.

View jerone's full-sized avatar

Jeroen van Warmerdam jerone

View GitHub Profile
@jerone
jerone / README.md
Last active January 17, 2016 22:34
CSS Priority

CSS declarations (ways to define CSS)

  • External styles in the DOM (<link rel="stylesheet" href="style.css">).
  • Internal styles in the DOM (<style>).
  • Inline styles in HTML elements (<div style="color: red;">).
  • External styles in CSS area (@import).

CSS hierarchy (first is highest priority)

  1. User styles with !important.
@jerone
jerone / README.md
Last active December 11, 2015 08:20
Dood in de woestijn (spel antwoorden)

Dood in de woestijn (spel)

  1. 1 andspiegel
  2. 1 overjas per persoon
  3. 1 lt. water per persoon
  4. zaklantaarn
  5. felgekleurde parachute
  6. zakmes
  7. 1 plastic regenjas
  8. geladen persoon
@jerone
jerone / snippet.js
Created July 25, 2015 15:40
Atom get repo statusses snippet
var GitUtils = require('git-utils');
var repo = GitUtils.open(atom.project.getPaths()[0]);
console.log(repo.getStatus());
@jerone
jerone / test-grant-GM.user.js
Last active August 29, 2015 14:18
Hook into jQuery existing events
// ==UserScript==
// @name test @grant GM_*
// @namespace https://github.com/jerone/UserScripts
// @include https://github.com/*
// @version 1
// @grant GM_setValue
// ==/UserScript==
unsafeWindow.$(document).on("pjax:end", exportFunction(function() {
console.log('test @grant GM_* 1');
{
"webexe_settings": {
"linux-x32": false,
"windows-x64": true,
"download_dir": "C:\\\\Users\\\\jerone\\\\Desktop\\\\Web2ExeWin\\\\files\\\\downloads",
"nw_compression_level": 5,
"mac-x32": false,
"windows-x32": false,
"mac-x64": false,
"nw_version": "0.12.0-rc1",
@jerone
jerone / gist:85ea9f9a4dfa3496a963
Created December 7, 2014 14:31
Override markdown button to support code blocks
//$.fn.markdown.defaults.buttons[0][2].data[2]
var cmdBold, cmdItalic, cmdCode;
$.fn.markdown.defaults.buttons[0].forEach(function(group) {
group.data.forEach(function(button) {
if (button.name === 'cmdBold') cmdBold = button;
else if (button.name === 'cmdItalic') cmdItalic = button;
else if (button.name === 'cmdCode') cmdCode = button;
});
});
// Override `cmdCode` button;
// ==UserScript==
// @name Horizon TV issue
// @namespace https://github.com/jerone/UserScripts/
// @include *horizon.tv*
// @version 1
// @grant none
// ==/UserScript==
(function HorizonTVFixer() {
@jerone
jerone / WE-Markdown.css
Last active January 12, 2022 01:19
Github Flavored Markdown Stylesheet for Web Essentials
html {
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
font-family: sans-serif;
}
body {
margin: 0;
padding: 30px;
min-width: 1020px;
@jerone
jerone / 163703.user.js
Last active August 29, 2015 13:57
Update for Twitter navigation problem
// ==UserScript==
// @name Hide replies on Twitter user account
// @namespace http://userscripts.org/scripts/show/163703
// @description Hide replies on Twitter user account
// @include *//twitter.com/*
// @exclude *//twitter.com/
// @exclude *//twitter.com
// @version 4
// @grant none
// ==/UserScript==
@jerone
jerone / gist:9723502
Created March 23, 2014 14:06
Transitions for jQuery pjax
$(document).on('pjax:start', function() {
$(this).find('[data-pjax-container]').fadeOut();
}).on('pjax:end', function() {
$(this).find('[data-pjax-container]').fadeIn();
});