Skip to content

Instantly share code, notes, and snippets.

View neikeq's full-sized avatar
🪐
Working from Saturn

Ignacio Roldán Etcheverry neikeq

🪐
Working from Saturn
  • Madrid
View GitHub Profile
@jboner
jboner / latency.txt
Last active July 25, 2024 11:30
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers (~2012)
----------------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD
@kevinhughes27
kevinhughes27 / the_arborist.rb
Last active January 7, 2022 22:53
find un-deleted branches from closed PRs
#!/usr/bin/env ruby
require 'octokit'
require 'highline/import'
require 'colorize'
require 'byebug'
require 'csv'
require 'active_support/time'
username = ask("Enter your Github username: ") { |q| q.echo = true }
@blurymind
blurymind / pan.gd
Last active July 29, 2016 18:58 — forked from neikeq/pan.gd
extends Camera2D
var dragging = false
func _ready():
set_process_input(true)
func _input(event):
if event.type == InputEvent.MOUSE_BUTTON and event.button_index == BUTTON_MIDDLE:
dragging = event.is_pressed()
@YeOldeDM
YeOldeDM / _delete_data.py
Created August 6, 2016 20:18
delete a folder, and all contents of that folder
func _delete_data(path):
var dir = Directory.new()
var opened = dir.change_dir(path)
if opened != OK:
OS.alert("Error "+str(opened)+" opening path: "+path)
dir.list_dir_begin()
var current = dir.get_next()
print(current)
while not current.empty():
@veelo
veelo / howto.md
Last active September 27, 2018 01:03
ddox on Travis CI

Serve ddox documentation on github.io deployed by Travis CI

This guide makes no assumptions on prior knowledge of Github Pages or Travis CI. You'll know which steps to skip (if the project uses Pages already, this will overwrite them). Assumed is you have a public D project on GitHub and you have documented its API with embedded ddoc comments. You should probably be aware of the known issues of ddox, which we use here.

For a project URL like https://github.com/<user>/<project>, the documentation will appear at https://<user>.github.io/<project>/.

Enable Travis CI for your repository

The long story: https://docs.travis-ci.com/user/getting-started/, https://docs.travis-ci.com/user/languages/d/

The short story:

@Calinou
Calinou / CHANGELOG.md
Last active May 25, 2023 19:07
Godot 4.0 preliminary changelog (does not list changes that were also backported to Godot 3.x)

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog.

[4.0] - TBD

Added