This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@font-face { | |
font-family: 'Bookerly'; | |
src: url('https://rawcdn.githack.com/skotzko/oldblog/c34be5396747ab36b352ec48b964e3e8548d5e37/scss/fonts/bookerly/Bookerly-Regular.eot'); /* IE9 Compat Modes */ | |
src: url('https://rawcdn.githack.com/skotzko/oldblog/c34be5396747ab36b352ec48b964e3e8548d5e37/scss/fonts/bookerly/Bookerly-Regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ | |
url('https://rawcdn.githack.com/skotzko/oldblog/c34be5396747ab36b352ec48b964e3e8548d5e37/scss/fonts/bookerly/Bookerly-Regular.woff') format('woff'), /* Pretty Modern Browsers */ | |
url('https://rawcdn.githack.com/skotzko/oldblog/c34be5396747ab36b352ec48b964e3e8548d5e37/scss/fonts/bookerly/Bookerly-Regular.ttf') format('truetype'), /* Safari, Android, iOS */ | |
url('https://rawcdn.githack.com/skotzko/oldblog/c34be5396747ab36b352ec48b964e3e8548d5e37/scss/fonts/bookerly/Bookerly-Regular.svg#svgFontName') format('svg'); /* Legacy iOS */ | |
font-weight: normal; | |
font-style: normal; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @param string $dsn DSN string to pass the PDO object. Passed in to prevent tight coupling | |
* @param string $user Username for a privileged user in the database. | |
* @param string $password Password matching $user. | |
* | |
* @return \PDO | |
*/ | |
function pdoConnect($dsn, $user, $password) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Compressed Oval Animation */ | |
#oval { | |
background: url(http://www.hdwallpapersarena.com/wp-content/uploads/2012/05/sunset_landscape.jpg); | |
height: 300px; | |
width: 300px; | |
margin: 20px; | |
border-radius: 150px; | |
-webkit-animation: compress 2s infinite; | |
box-shadow: 0 5px 5px rgba(0, 0, 0, 0.5), inset 0 50px 50px rgba(255,255,255,0.5); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Linkify Markdown Mentions - github.com | |
// @namespace Violentmonkey Scripts | |
// @match https://github.com/* | |
// @grant none | |
// @version 1.0 | |
// @author Madara Uchiha | |
// @description 6/10/2020, 4:29:55 PM | |
// ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Forms; | |
/** | |
* This file is supposed to give a good way of generating forms programmatically with PHP. | |
*/ | |
/* | |
* WARNING! WARNING! WARNING! WARNING! WARNING! WARNING! WARNING! WARNING! WARNING! WARNING! WARNING! WARNING! | |
* ----------------------------------------------------------------------------------------------------------- | |
* None of the strings you see in the following classes are escaped/secured against any kind of |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ThingFactory { | |
constructor(private readonly service1: Service1, private readonly service2: Service2) {} | |
make<T extends OtherThing_1 | OtherThing_2>(arg: T) { // no need to declare return value. If you want to, it's T | |
// use this.service1 and this.service2 here | |
return arg; | |
} | |
} | |
const factory = new ThingFactory(service1, service2); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- or | = wall | |
X = door | |
L = trap | |
--- | |
|L|L... | |
X X X | |
|L|L| | |
| | | | |
|L|L| | |
X X X |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type CartItem = string // placeholder for a more complicated type | |
type EmptyState = NoItems // don't use empty list! We want to | |
// force clients to handle this as a | |
// separate case. E.g. "you have no | |
// items in your cart" | |
type ActiveState = { UnpaidItems : CartItem list; } | |
type PaidForState = { PaidItems : CartItem list; | |
Payment : decimal} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Version: 1 | |
Name: 2020-05-12 | |
Mods: | |
- Id: brrainz.harmony | |
Name: Harmony | |
- Id: automatic.startupimpact | |
Name: Startup impact | |
- Id: ludeon.rimworld | |
Name: Core | |
- Id: ludeon.rimworld.royalty |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module PrisonersNeedRecruiting | |
open Verse | |
open RimWorld | |
let inline (!>) (x: ^a): ^b = | |
((^a or ^b): (static member op_Implicit: ^a -> ^b) x) | |
type MouseEvent = | |
| RightClick |
NewerOlder