Skip to content

Instantly share code, notes, and snippets.

Avatar

Dexter neoel

View GitHub Profile
View gist:5226f87d4d4e876109c0faacc99c912d
https://docs.google.com/document/d/19S1xLE2Z2Jis_sp3p0trTQOGclLY7ZFzj1Erp74FYFk/edit?usp=sharing
@neoel
neoel / gist:c03d3bb53bbda465498bc22182ae042a
Created Nov 17, 2018
Hasura error with GENERATED ALWAYS
View gist:c03d3bb53bbda465498bc22182ae042a
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,
@neoel
neoel / clock.js
Last active Jun 1, 2018
Svelte clock
View clock.js
/* App.html generated by Svelte v2.7.0 */
function hours({ time }) {
return time.getHours();
}
function minutes({ time }) {
return time.getMinutes();
}
@neoel
neoel / sample.js
Created May 7, 2018
React component Lifecycle methods
View sample.js
class Component extends React.Component {
static getDerivedStateFromProps (nextProps, prevState) {
// -> nextState
// | Called after instantiating and when it receives new props
}
render () {
// -> jsx
}
@neoel
neoel / file1.txt
Last active Feb 26, 2018 — forked from anonymous/file1.txt
the description for this gist
View file1.txt
Hoi Alexandros
@neoel
neoel / App.html
Created Feb 8, 2018 — forked from anonymous/App.html
Game of Life in 6's
View App.html
<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>
@neoel
neoel / webpack.config.js
Created Oct 3, 2017
Configuration of webpack, babel, postcss-modules, scss
View webpack.config.js
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')
View output.txt
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`
View psql
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)
@neoel
neoel / kaboo.md
Last active Sep 2, 2022
Kaboo - Rules [the best game.]
View kaboo.md

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)