Skip to content

Instantly share code, notes, and snippets.

View heygema's full-sized avatar
✝️
Cracked, Light Enters

Gema heygema

✝️
Cracked, Light Enters
View GitHub Profile
@heygema
heygema / server.js
Created August 30, 2019 08:53
Humble Simple Server - use this to just run index.html without any deps whatsoevvsss.
const http = require('http');
const fs = require('fs');
const path = require('path');
const mime = require('mime');
const PORT = 8000;
function notFound(_req, res) {
res.writeHead(404, {'Content-Type': 'text/html'});
res.end('<p>404 Not Found</p>');
};
@heygema
heygema / kitty.conf
Last active September 10, 2019 15:36
kitty config
# vim:fileencoding=utf-8:ft=conf:foldmethod=marker
include snazzy.conf
# hacker theme
# foreground #00FF00
# background #000000
#: Fonts {{{
@heygema
heygema / index.html
Created May 3, 2019 08:14
Tetris with Canvas
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>tetris</title>
</head>
<body>
<style>
body, html {
display: flex;
@heygema
heygema / App.re
Last active April 14, 2019 09:23
Reason-Revery Showcase
/*FOR REASONML-REVERY SHOWCASE*/
open Revery;
open Revery.UI;
open Revery.UI.Components;
type color =
| Red
| Green
| Blue
@heygema
heygema / config.fish
Last active April 8, 2019 07:47
fish config
# Fish Config
# Mon Apr 8 14:44:12 2019
source $HOME/.config/fish/dev_vars.fish
set -gx NVM_DIR (brew --prefix nvm)
#function nvm
# bass source ~/.nvm/nvm.sh --no-use ';' nvm $argv
@heygema
heygema / coc-settings.json
Last active October 9, 2019 11:02
neovim setup
{
"tsserver.enableJavascript": false,
"coc.preferences.jumpCommand": "drop",
"languageserver": {
"javascript": {
"command": "flow",
"args": ["lsp"],
"filetypes": ["javascript", "javascriptreact", " javascript.jsx"],
"initializationOptions": {},
"requireRootPattern": true,
@heygema
heygema / .vimrc
Last active April 9, 2019 12:44
Gema Anggada's vim setup
" =========
" Gema Anggada's VIM SETUP
" =========
" Tue Apr 9 18:07:55 2019
set nocompatible " be iMproved, required
filetype off " required
" =========
" PLUGINS
@heygema
heygema / db.ts
Created January 30, 2019 06:24
db for bootcamp
export type Products = Array<Product>;
export type Product = {
id: string;
name: string;
price: number;
photo: string;
};
export type ProductEditInput = {
<plist version="1.0">
<dict>
<key>author</key>
<string>IceTimux (http://icetimux.com)</string>
<key>name</key>
<string>One Dark</string>
<key>semanticClass</key>
<string>theme.dark.one_dark</string>
<key>colorSpaceName</key>
<string>sRGB</string>
@heygema
heygema / Home.re
Created May 30, 2018 05:49
GlobalState.re
let component = ReasonReact.statelessComponent("Home");
let make = _children => {
...component,
render: _self =>
<div className=Style.container>
<Store>
...(
({state, send}) =>
<div>