Skip to content

Instantly share code, notes, and snippets.

<html><head></head><body style="
font-size: 9rem;
"><table style="
overflow: auto;
width: 500px;
display: grid;
position: relative;
background: linear-gradient(to right, rgba(255,255,255,0) 90%, #ccc);
"><thead><tr><th>Foo</th><th>Bar</th><th>Baz</th></tr></thead><tbody><tr><td>1</td><td></td><td></td></tr><tr><td>1</td><td></td><td></td></tr><tr><td>1</td><td></td><td></td></tr></tbody></table></body></html>
@SignpostMarv
SignpostMarv / zelda25-webtorrent-or-ipfs.html
Last active February 29, 2020 23:45
proof-of-concept for using webtorrent to stream ocremix albums
<!DOCTYPE html>
<head>
<style>
.bg,
.fg
{
position: fixed ;
top: 0 ;
left: 0 ;
width: 100% ;
1) src\JsonSchema\Constraints\CollectionConstraint.php (no_superfluous_phpdoc_tags, phpdoc_align)
 ---------- begin diff ----------
--- Original
+++ New
@@ -57,10 +57,9 @@
/**
* Validates the items
*
- * @param array $value
- * @param \stdClass $schema
diff --git a/src/Reflection/Php/PhpParameterReflection.php b/src/Reflection/Php/PhpParameterReflection.php
index 02ce9255..03b8a5f2 100644
--- a/src/Reflection/Php/PhpParameterReflection.php
+++ b/src/Reflection/Php/PhpParameterReflection.php
@@ -7,6 +7,7 @@ use PHPStan\Reflection\PassedByReference;
use PHPStan\Type\MixedType;
use PHPStan\Type\Type;
use PHPStan\Type\TypehintHelper;
+use ReflectionClass;
@SignpostMarv
SignpostMarv / RequestHertzFrame.js
Created November 13, 2017 18:34
RequestHertzFrame.js
class RequestHertzFrame
{
static get DEFAULT_UNKNOWN_HZ ()
{
return {
hz: NaN,
request: requestAnimationFrame,
cancel: cancelAnimationFrame,
};
}
@SignpostMarv
SignpostMarv / bork.txt
Created July 6, 2017 21:08
odd clipboard modification bug process of elmination
95de80b7f1bcb292ecda48bf2a1ae4e26ebba95f
95de80b7f1bcb292ecda48bf2a1ae4e26eb
95de80b7f1bcb292ecda48bf2a1ae4e26ec
95de80b7f1bcb292ecda48bf2a1ae4e26ed
95de80b7f1bcb292ecda48bf2a1ae4e26ee
95de80b7f1bcb292ecda48bf2a1ae4e26ef
95de80b7f1bcb292ecda48bf2a1ae4e26ea
95de80b7f1bcb292ecda48bf2a1ae4e26e9
95de80b7f1bcb292ecda48bf2a1ae4e26e8
95de80b7f1bcb292ecda48bf2a1ae4e26e7
@SignpostMarv
SignpostMarv / Prebuild.xml
Last active February 28, 2016 15:15
dynamicish crosswalk .net extension api
<?xml version="1.0" ?>
<Prebuild version="1.10" xmlns="http://dnpb.sourceforge.net/schemas/prebuild-1.10.xsd">
<Solution activeConfig="Debug" name="xwalk_dotnet" path="./">
<Configuration name="Debug">
<Options>
<CompilerDefines>TRACE;DEBUG</CompilerDefines>
<OptimizeCode>false</OptimizeCode>
<CheckUnderflowOverflow>false</CheckUnderflowOverflow>
<AllowUnsafe>true</AllowUnsafe>
<WarningLevel>4</WarningLevel>
@SignpostMarv
SignpostMarv / after.js
Created June 14, 2015 14:43
uglifyjs experiment (uglifyjs file.js --screw-ie8 -mc > file.min.js)
/**
// would need at least 3 arrays to prefix to bother pulling this out
var makePrefix = function(prefix){
return function(e){
return prefix + '-' + e;
};
};
*/
[
// bower_components that we don't have enough of to map prefixes but that
@SignpostMarv
SignpostMarv / keySequenceTrigger.js
Created September 27, 2013 15:48
trigger a function with a given key sequence
/**
* @license License and Terms of Use
*
* Copyright (c) 2013 SignpostMarv
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
@SignpostMarv
SignpostMarv / gist:6727415
Last active December 24, 2015 01:59 — forked from volodymyr-mykhailyk/gist:2923227
do one-time test to return a typed array where supported.
var stringToByteArray = (function(){
var func = function (str) {
var b = [], i, unicode;
for(i = 0; i < str.length; i++) {
unicode = str.charCodeAt(i);
// 0x00000000 - 0x0000007f -> 0xxxxxxx
if (unicode <= 0x7f) {
b.push(unicode);
// 0x00000080 - 0x000007ff -> 110xxxxx 10xxxxxx
} else if (unicode <= 0x7ff) {