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
#!/bin/sh | |
CPRGHT_NOTICE='/* Copyright (c) 2023 Raphael Brand | |
License MIT | |
*/ | |
' | |
for file in $(git status --porcelain | grep -E '^(M|A)' | awk '{print $2}') | |
do | |
if ! (( $(grep -ir 'Copyright' $file | wc -l) >= 1 )); then |
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
use async_std::path::PathBuf; | |
use simple_tmpl_lib::TemplateEngine; | |
use tide::prelude::json; | |
use tide::Response; | |
use tide::StatusCode; | |
#[derive(Debug, serde::Serialize)] | |
struct MyError { | |
message: String, | |
} |
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
let result = vec![ | |
("paper", "paper"), | |
("paper", "scissor"), | |
("paper", "stone"), | |
("scissor", "paper"), | |
("scissor", "scissor"), | |
("scissor", "stone"), | |
("stone", "paper"), | |
("stone", "scissor"), | |
("stone", "stone"), |
[SQL Fiddle][1]
MySQL 5.6 Schema Setup:
CREATE TABLE symbols (
symbol CHAR(12)
);
INSERT INTO symbols (symbol) VALUES
('rock'),
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
{ | |
"name": "sandbox", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"start": "tsc && node dist/index.js", | |
"dev": "nodemon --watch 'src/**/*.ts' --exec 'ts-node' src/index.ts", | |
"lint": "eslint .", | |
"lint:fix": "eslint . --fix" |
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
Show hidden characters
{ | |
"compilerOptions": { | |
"target": "es6", | |
"module": "commonjs", | |
"rootDir": "src", | |
"outDir": "dist", | |
"sourceMap": true, | |
"resolveJsonModule": true, | |
"lib": ["es6", "dom"], | |
"esModuleInterop": true |
I hereby claim:
- I am raphael-brand on github.
- I am raphaelbrand (https://keybase.io/raphaelbrand) on keybase.
- I have a public key ASDdKJ_gWUk63rqCEs8mAaAcn0ycxatiVmpON-2iwLhSNQo
To claim this, I am signing this object:
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
@graphql(gql` | |
query { | |
todos { | |
title | |
date | |
} | |
} | |
`); | |
class Todos extends Component { |
NewerOlder