Skip to content

Instantly share code, notes, and snippets.

@leocomelli
leocomelli / git.md
Last active May 28, 2024 13:34
Lista de comandos úteis do GIT

GIT

Estados

  • Modificado (modified);
  • Preparado (staged/index)
  • Consolidado (comitted);

Ajuda

@mbostock
mbostock / .block
Last active February 14, 2024 17:51
Zoomable Circle Packing
license: gpl-3.0
height: 960
redirect: https://observablehq.com/@d3/d3-zoomable-circle-packing
@mbostock
mbostock / .block
Last active January 18, 2024 20:25 — forked from mbostock/.block
Stacked Bar Chart
license: gpl-3.0
redirect: https://beta.observablehq.com/@mbostock/d3-stacked-bar-chart
@nbremer
nbremer / .block
Last active November 3, 2023 18:51
Brushable Horizontal Bar Chart - IV
height: 540
@sam-artuso
sam-artuso / setting-up-babel-nodemon.md
Last active November 3, 2023 08:52
Setting up Babel and nodemon

Setting up Babel and nodemon

Inital set-up

Set up project:

mkdir project
cd project
npm init -y
@celsowm
celsowm / emails.csv
Created July 20, 2020 03:04
emails.csv
id nome email
1 Michaela Worsall mworsall0@booking.com
2 Lulita Trowel ltrowel1@unblog.fr
3 Ilsa Ianilli iianilli2@google.fr
4 Mable Brimmicombe mbrimmicombe3@marriott.com
5 Neila Gumary ngumary4@macromedia.com
6 Stanford Dawnay sdawnay5@goodreads.com
7 Camala Kellitt ckellitt6@salon.com
8 Nelia Stephens nstephens7@wikispaces.com
9 Tomasina Giorgiutti tgiorgiutti8@howstuffworks.com
@nbremer
nbremer / .block
Last active June 27, 2023 15:27
Self Organizing Map - Heatmap - D3
license: mit
@mbostock
mbostock / .block
Last active April 23, 2023 20:06
Voronoi Tessellation
license: gpl-3.0
redirect: https://beta.observablehq.com/@mbostock/hover-voronoi
@robdmc
robdmc / csv_logger.py
Last active December 13, 2022 09:57
Useful CSV logging with python
#! /usr/bin/env python
import logging
import datetime
import fleming
import pytz
import os
from itertools import islice
import sys
@thiagopnts
thiagopnts / puzzle.py
Last active October 22, 2021 06:17
The 8 puzzle problem implementation in python, using A* with hamming distance + moves as f(x)
# -*- coding: utf-8 -*-
from heapq import heappush, heappop
from random import shuffle
import time
class Solver:
def __init__(self, initial_state=None):
self.initial_state = State(initial_state)
self.goal = range(1, 9)