Skip to content

Instantly share code, notes, and snippets.

@gexplorer
gexplorer / splendor.css
Created March 24, 2020 14:04
markdown.css
@media print{*,:after,:before{background:0 0!important;color:#000!important;box-shadow:none!important;text-shadow:none!important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}a[href^="#"]:after,a[href^="javascript:"]:after{content:""}blockquote,pre{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}img,tr{page-break-inside:avoid}img{max-width:100%!important}h2,h3,p{orphans:3;widows:3}h2,h3{page-break-after:avoid}}@media screen and (min-width:32rem) and (max-width:48rem){html{font-size:15px}}@media screen and (min-width:48rem){html{font-size:16px}}body{line-height:1.85}.splendor-p,p{font-size:1rem;margin-bottom:1.3rem}.splendor-h1,.splendor-h2,.splendor-h3,.splendor-h4,h1,h2,h3,h4{margin:1.414rem 0 .5rem;font-weight:inherit;line-height:1.42}.splendor-h1,h1{margin-top:0;font-size:3.998rem}.splendor-h2,h2{font-size:2.827rem}.splendor-h3,h3{font-size:1.999rem}.splendor-h4,h4{font-size:1.414rem}.splendor-h5
@gexplorer
gexplorer / theme-readtheorg.setup
Last active December 3, 2019 10:21
Org html themes
# -*- mode: org; -*-
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="https://fniessen.github.io/org-html-themes/styles/readtheorg/css/htmlize.css"/>
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="https://fniessen.github.io/org-html-themes/styles/readtheorg/css/readtheorg.css"/>
#+HTML_HEAD: <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
#+HTML_HEAD: <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
#+HTML_HEAD: <script type="text/javascript" src="https://fniessen.github.io/org-html-themes/styles/lib/js/jquery.stickytableheaders.min.js"></script>
#+HTML_HEAD: <script type="text/javascript" src="https://fniessen.github.io/org-html-themes/styles/readtheorg/js/readtheorg.js"></script>
@gexplorer
gexplorer / ColorTheme.ps1
Created November 19, 2019 10:41
PowerShell profile
ColorTool.exe -q custom.itermcolors
# $colorScheme = @{
# None = @("Gray", "Black");
# Comment = @("DarkMagenta", "Black");
# Keyword = @("DarkGreen", "Black");
# String = @("DarkBlue", "Black");
# Operator = @("DarkRed", "Black");
# Variable = @("DarkGreen", "Black");
# Command = @("Gray", "Black");
@gexplorer
gexplorer / dot-org.el
Last active November 19, 2019 12:00
emacs.d
(use-package org
:ensure
:mode ("\\.org\\'" . org-mode)
:bind (("C-c a" . org-agenda)
("C-c c" . org-capture)
("C-S-n" . org-move-subtree-down)
("C-S-p" . org-move-subtree-up))
:commands (org-map-entries org-archive-subtree org-element-property org-element-at-point)
:custom
(org-priority-faces `((65 . ,(face-foreground 'error))
@gexplorer
gexplorer / App.scss
Created August 19, 2018 14:30
Improving TweetFeed legibility
$font-size-base: 1.2rem;
$line-height-base: 1.2;
@gexplorer
gexplorer / VSTSCards-updates.xml
Created December 18, 2017 11:15
VSTSCards update_url
<?xml version='1.0' encoding='UTF-8'?>
<gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'>
<app appid='fhkicbgahkingfogejdkhlekigefehpe'>
<updatecheck codebase='https://github.com/gexplorer/VSTSCards/releases/download/v3.0.2/vsts-cards.crx' version='3.0.2' />
</app>
</gupdate>
@gexplorer
gexplorer / places.kml
Last active April 5, 2017 07:09
Places kml
<?xml version="1.0" encoding="utf-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Style id="west_campus_style">
<IconStyle>
<Icon>
<href>https://maps.gstatic.com/mapfiles/place_api/icons/lodging-71.png</href>
</Icon>
</IconStyle>
</Style>
<Placemark>
@media print
{
.no-print, .no-print *
{
display: none !important;
}
}
.no-print{
opacity: 0.5;
@gexplorer
gexplorer / CatchDbEntityValidationException.cs
Created May 30, 2016 10:13
Catch DbEntityValidationException
ex.EntityValidationErrors
.SelectMany(result => result.ValidationErrors)
.ForEach(error => Console.WriteLine(error.PropertyName + @" : " + error.ErrorMessage));
@gexplorer
gexplorer / gulpfile.js
Created November 24, 2015 11:39
NPM & bower dependencies for JavaScript testing
var gulp = require('gulp');
var Server = require('karma').Server;
gulp.task('test', function (done) {
new Server({
configFile: __dirname + '/karma.conf.js',
singleRun: true
}, done).start();
});