Skip to content

Instantly share code, notes, and snippets.

View RatoX's full-sized avatar

Rodrigo Vieira RatoX

View GitHub Profile
@RatoX
RatoX / chrome-memory-leak.html
Created June 8, 2019 22:57
Google Chrome CSS memory leak
<html>
<head>
<style>
@keyframes wave {
0% {
font-variation-settings: 'wght' 100;
}
100% {
font-variation-settings: 'wght' 1000;
}
@RatoX
RatoX / last_branchs.sh
Created September 25, 2019 03:27
List last worked branchs
#!/usr/local/bin/bash
# OS x only
function last_branchs {
readarray array <<< $(git for-each-ref --sort=-committerdate refs/heads/ --format='%(committerdate:short) %(refname:short)')
FIVE_DAYS_AGO=$(date -v-5d "+%s")
for row in "${array[@]}";do
row_array=(${row})
@RatoX
RatoX / basic_code.js
Last active April 9, 2020 02:46
ProseMirror EditorState
'use strict';
const {EditorState} = require('prosemirror-state');
const {Schema, Node} = require('prosemirror-model');
const schema = new Schema({
nodes: {
doc: {
content: 'block+',
},