Skip to content

Instantly share code, notes, and snippets.

View dxlbnl's full-sized avatar

Dexter dxlbnl

View GitHub Profile
https://docs.google.com/document/d/19S1xLE2Z2Jis_sp3p0trTQOGclLY7ZFzj1Erp74FYFk/edit?usp=sharing
@dxlbnl
dxlbnl / gist:c03d3bb53bbda465498bc22182ae042a
Created November 17, 2018 18:33
Hasura error with GENERATED ALWAYS
graphql_1 | {
"timestamp": "2018-11-17T18:09:55.628+0000",
"level": "info",
"type": "http-log",
"detail": {
"status": 500,
"query_hash": "cb9097259d9674a46228be3b19979abd7f46b6aa",
"http_version": "HTTP/1.1",
"query_execution_time": 0.014521827,
"request_id": null,
@dxlbnl
dxlbnl / clock.js
Last active June 1, 2018 14:57
Svelte clock
/* App.html generated by Svelte v2.7.0 */
function hours({ time }) {
return time.getHours();
}
function minutes({ time }) {
return time.getMinutes();
}
@dxlbnl
dxlbnl / sample.js
Created May 7, 2018 11:47
React component Lifecycle methods
class Component extends React.Component {
static getDerivedStateFromProps (nextProps, prevState) {
// -> nextState
// | Called after instantiating and when it receives new props
}
render () {
// -> jsx
}
@dxlbnl
dxlbnl / file1.txt
Last active February 26, 2018 13:19 — forked from anonymous/file1.txt
the description for this gist
Hoi Alexandros
@dxlbnl
dxlbnl / App.html
Created February 8, 2018 09:56 — forked from anonymous/App.html
Game of Life in 6's
<svg viewBox="0 0 100 130">
<defs>
<pattern id="pattern" width="{{patternWidth}}" height="{{patternHeight}}" patternUnits="userSpaceOnUse">
<path fill="url(#pattern)" stroke-width=".1" d="M0 {{gridHeight}}0h{{patternWidth}}"/>
<path fill="url(#pattern)" stroke-width=".1" d="M0 {{patternHeight}}h{{patternWidth}}"/>
<path fill="url(#pattern)" stroke-width=".1" d="M0 0h{{patternWidth}}"/>
<path fill="url(#pattern)" stroke-width=".1" d="M0 {{patternHeight}}L{{patternWidth}} 0"/>
<path fill="url(#pattern)" stroke-width=".1" d="M0 0L{{patternWidth}} {{patternHeight}}"/>
</pattern>
</defs>
@dxlbnl
dxlbnl / webpack.config.js
Created October 3, 2017 09:37
Configuration of webpack, babel, postcss-modules, scss
var webpack = require('webpack')
var path = require('path')
var ExtractTextPlugin = require('extract-text-webpack-plugin')
var HtmlWebpackPlugin = require('html-webpack-plugin')
var CopyWebpackPlugin = require('copy-webpack-plugin')
var SpriteLoaderPlugin = require('svg-sprite-loader/plugin')
var defines = require('./defines.config')
var config = require('./webpack.config')
Compiling queue v0.1.0 (file:///home/dexter/nerdalize/prototypes/queue)
warning: unused import: `diesel::expression`
--> src/bin/run_server.rs:23:5
|
23 | use diesel::expression;
| ^^^^^^^^^^^^^^^^^^
|
= note: #[warn(unused_imports)] on by default
warning: unused import: `diesel::query_builder::Query`
@dxlbnl
dxlbnl / psql
Created September 1, 2017 14:42
queue=> \dt
List of relations
Schema | Name | Type | Owner
--------+----------------------------+-------+-----------
public | __diesel_schema_migrations | table | nerdalize
public | runs | table | nerdalize
public | tasks | table | nerdalize
public | workloads | table | nerdalize
(4 rows)
@dxlbnl
dxlbnl / kaboo.md
Last active March 24, 2023 08:15
Kaboo - Rules [the best game.]

Kaboo

Kaboo is played with a standard card deck. It can be played with 2 to 8 players with a single deck.

Card values

  • Ace = 1
  • 2-10 = 2-10
  • Jack, Queen, King = 10
  • Red King = -1 (both of them)