Skip to content

Instantly share code, notes, and snippets.

View despairblue's full-sized avatar
🍸
I always let my imagination run away from me! Then it comes back..... with cake!

Danny Martini despairblue

🍸
I always let my imagination run away from me! Then it comes back..... with cake!
View GitHub Profile
id pictures2
1 http://example.com/1.jpg
2 http://example.com/1.jpg,http://example.com/2.jpg,http://example.com/3.jpg
{
"listings": [
{"id": "1", "pictures": ["http://example.com/1.jpg"]}
{"id": "2", "pictures": ["http://example.com/1.jpg", "http://example.com/2.jpg", "http://example.com/2.jpg"]}
]
}
2020-04-01T15:42:17.7434802Z ##[group]Run ls D:\a\featuritis\featuritis\_esy\default\store\i\hello_reason-a307a664\ || true
2020-04-01T15:42:17.7435440Z ls D:\a\featuritis\featuritis\_esy\default\store\i\hello_reason-a307a664\ || true
2020-04-01T15:42:17.7435610Z ls D:\a\featuritis\featuritis\_esy\default\store\i\hello_reason-a307a664\bin || true
2020-04-01T15:42:17.7435759Z revery-packager || true
2020-04-01T15:42:17.7435889Z ls _release/ || true
2020-04-01T15:42:17.7467575Z shell: C:\Program Files\PowerShell\7\pwsh.EXE -command ". '{0}'"
2020-04-01T15:42:17.7467756Z ##[endgroup]
2020-04-01T15:42:18.3284743Z
2020-04-01T15:42:18.3286734Z
2020-04-01T15:42:18.3292386Z Directory: D:\a\featuritis\featuritis\_esy\default\store\i\hello_reason-a307a664
@despairblue
despairblue / notes.md
Created May 27, 2018 21:46
Reason Dojo Notes

Reason Dojo Notes

General Problems

  • wrapping components is repetetive, using all those @bs.deriving
    • [problem] No one of us read the documentation and with it looking like a record we expected it to behave like a record.
      • Why do we need to call Composable.projectionConfigT instead of just passing in a record?
      • Why is a type a function?
    • We should have checked the documentation, I just read it and now I understand it. In my opinion it should not look like a record if I cannot use it like one. Maybe the syntax can be changed. I don't know enough about PPX to know if that is possible though.
    • [solution] Find another syntax that does not imply that this is a record.
@despairblue
despairblue / consumer.ts
Last active May 10, 2017 12:17
typesafe queue consumer
/**
* Types
*/
export interface I0 {
namespace: Namespaces
}
export interface IA extends I0 {
namespace: 'A'
@despairblue
despairblue / errors
Last active May 4, 2017 15:55
prettier typescript test suite
This file has been truncated, but you can view the full file.
../TypeScript/tests//baselines/reference/project/declarationDir/amd/declarations/a.d.ts
../TypeScript/tests//baselines/reference/project/declarationDir/amd/declarations/subfolder/b.d.ts
../TypeScript/tests//baselines/reference/project/declarationDir/amd/declarations/subfolder/c.d.ts
../TypeScript/tests//baselines/reference/project/declarationDir/node/declarations/a.d.ts
../TypeScript/tests//baselines/reference/project/declarationDir/node/declarations/subfolder/b.d.ts
../TypeScript/tests//baselines/reference/project/declarationDir/node/declarations/subfolder/c.d.ts
../TypeScript/tests//baselines/reference/project/declarationDir2/amd/declarations/a.d.ts
../TypeScript/tests//baselines/reference/project/declarationDir2/amd/declarations/subfolder/b.d.ts
../TypeScript/tests//baselines/reference/project/declarationDir2/amd/declarations/subfolder/c.d.ts
../TypeScript/tests//baselines/reference/project/declarationDir2/node/declarations/a.d.ts
apt-get install -y squashfs-tools unzip
wget https://github.com/jeaye/nixos-in-place/archive/master.zip
unzip master.zip
cd nixos-in-place-master
./install -d
mv /old-root/root/.ssh /root/
@despairblue
despairblue / streams.js
Created July 28, 2016 14:33
does not work with node > 5.9.1
'use strict'
const imageSizeStream = require('image-size-stream')
const fs = require('fs')
const through2 = require('through2')
const s = fs.createReadStream('./test/http/listings/fixtures/image-upload/weird.jpg')
const s2 = through2(s)
const is = imageSizeStream({ limit: Infinity })
@despairblue
despairblue / foo.js
Last active July 26, 2016 12:51
plop error
We couldn’t find that file to show.
{ stdenv, fetchFromGitHub, lib, ocaml, libelf, cf-private, CoreServices, git, mercurial }:
with lib;
stdenv.mkDerivation rec {
version = "0.28.0";
name = "flow-${version}";
src = fetchFromGitHub {
owner = "facebook";
repo = "flow";