Skip to content

Instantly share code, notes, and snippets.

@dotnetCarpenter
dotnetCarpenter / taptest2
Created January 6, 2016 11:16
https://github.com/tapjs/node-tap/issues/199 - output of running tap test/*.js -C --coverage
TAP version 13
# Subtest: test/304.js
# Subtest: 304_not_modified
ok 1 - first request should be a 200
ok 2 - second request should be a 304
ok 3 - should return a strong etag
1..3
ok 1 - 304_not_modified # time=212.235ms
# Subtest: 304_not_modified_weak
@dotnetCarpenter
dotnetCarpenter / dabblet.css
Last active September 27, 2016 16:35 — forked from LeaVerou/dabblet.css
Text-underline-animation
/**
* Text-underline-animation
*/
a {
font-size: 500%;
text-decoration: none;
background: linear-gradient(currentColor, currentColor) bottom / 0 .1em no-repeat;
transition: 1s background-size;
}
@dotnetCarpenter
dotnetCarpenter / dabblet.css
Last active September 27, 2016 19:29
Minimum required to set an underline that can be animated
/**
* Minimum required to set an underline that can be animated
*/
.f-jons-demo1 h2 {
display: inline; /* an inline element only takes up the size of its content (the content is "Hello World") */
color: darkred;/* not needed - set the color of the text */
background: linear-gradient(grey, grey) bottom / 100% .1em no-repeat;
}
/* The above can also be written like this: */

Keybase proof

I hereby claim:

  • I am dotnetCarpenter on github.
  • I am dotnetcarpenter (https://keybase.io/dotnetcarpenter) on keybase.
  • I have a public key whose fingerprint is 4DBC 96AE 79EE EACF 4052 AF89 AB34 16B5 6900 250B

To claim this, I am signing this object:

@dotnetCarpenter
dotnetCarpenter / npm_test_output
Last active October 27, 2016 14:41
npm test fails but if we run the indivudual tests or the commands in the tests, everything is ok.
C:\Users\korsoxx\jon\pipetree>npm test
> [email protected] test C:\Users\korsoxx\jon\pipetree
> tap spec/*.js --100
spec/httpsget.js ...................................... 1/1 8s
spec/integration.js ................................... 0/4 3s
downloadUrl should
not ok Error: Command failed: node integration/cat.js fixtures/releases.json | node integration/downloadUrl.js 'C:\Users\korsoxx\.node-spawn-wrap-11056-b87e533d7c69' is not recognized as an internal or external command, operable program or batch file.
at:
@dotnetCarpenter
dotnetCarpenter / pre-push
Last active November 13, 2016 10:49
Before you push hook for svg.js
#!/bin/sh
npm run build:test && npm run test:quick
# check how the test went
testCode=$?
[ "$testCode" = 0 ] || echo "Your current build does not pass our unit tests - please make them pass before you push"
# revert artifacts created during build
git reset --hard $(git log -1 --pretty=%H)
# exit with the test exit code
@dotnetCarpenter
dotnetCarpenter / Kernel.php
Last active April 2, 2020 21:50
`./artisan server` for Lumen 5.3. Kernel.php is in app/Console/ and ServeCommand should be created in app/Console/Commands/
<?php
namespace App\Console;
use Illuminate\Console\Scheduling\Schedule;
use Laravel\Lumen\Console\Kernel as ConsoleKernel;
class Kernel extends ConsoleKernel
{
/**
@dotnetCarpenter
dotnetCarpenter / 2017-12-16T08_57_12_227Z-debug.log
Created December 16, 2017 09:02
npm can not find package.json in git repository
0 info it worked if it ends with ok
1 verbose cli [ '/home/dotnet/.nvm/versions/node/v8.9.3/bin/node',
1 verbose cli '/home/dotnet/.nvm/versions/node/v8.9.3/bin/npm',
1 verbose cli 'i',
1 verbose cli '-g',
1 verbose cli '[email protected]:dotnetCarpenter/node-ecstatic.git' ]
2 info using [email protected]
3 info using [email protected]
4 verbose npm-session d03ba394f38d5f28
5 silly install loadCurrentTree
@dotnetCarpenter
dotnetCarpenter / # python@2 - 2018-06-15_12-09-28.txt
Created June 15, 2018 14:25
python@2 on macOS 10.13.5 - Homebrew build logs
Homebrew build logs for python@2 on macOS 10.13.5
Build date: 2018-06-15 12:09:28
@dotnetCarpenter
dotnetCarpenter / file1.mjs
Created July 20, 2018 10:41
es-check ES2015 modules
export default msg => { console.log(msg) }