Skip to content

Instantly share code, notes, and snippets.

View nmenag's full-sized avatar

Nicolas Mena nmenag

View GitHub Profile
@orendon
orendon / 00_graphs_intro.md
Last active September 13, 2021 23:16
Club de Algoritmia: Febrero de Grafos

Recursos de las sesiones del mes de Febrero (Grafos)

Todo el mes de febrero estaremos tratando sobre grafos, a continuación los recursos de cada una de las sesiones

  • Ene 26 - Introducción a Grafos y Representación
  • Feb 02 - BFS (Breadth First Search)
  • Feb 09 - Flood-fill y DFS (Depth First Search)
  • Feb 16 - Ordenamiento Topológico
  • Feb 23 - Kosaraju

Las grabaciones quedan https://www.youtube.com/playlist?list=PLRMfC7A6yJWqJ6x-Xw4Fmrpx-4N5wPjQH

@rubencaro
rubencaro / setup_kotlin.md
Last active April 9, 2021 19:13
Kotlin/Java Installation Guide

Kotlin/Java installation guide

These are my notes, not a generic solution. They are not meant to work anywhere outside my machines. Update version numbers to whatever are the current ones while you do this.

Install asdf and some plugins, then install Java, Kotlin & Gradle

asdf lives in https://github.com/asdf-vm/asdf

Follow its installation instructions, which at the moment of writing were:

@lujanfernaud
lujanfernaud / minitest_and_database_cleaner.md
Last active December 28, 2023 17:37
Minitest and Database Cleaner

Minitest and Database Cleaner

test_helper.rb

require 'database_cleaner'
require 'database_cleaner_support'

DatabaseCleaner.clean_with :truncation
DatabaseCleaner.strategy = :transaction
@atsmith813
atsmith813 / rubo_changes.sh
Created June 4, 2018 23:40
Run Rubocop only on Ruby files with changes
alias rubo_changes="git ls-files -m | xargs ls -1 2>/dev/null | grep '\.rb$' | xargs rubocop"
@ba11b0y
ba11b0y / installing-postman.md
Last active August 31, 2023 19:21
Installing Postman on Ubuntu/Gnome

Since Chrome apps are now being deprecated. Download postman from https://dl.pstmn.io/download/latest/linux

Although I highly recommend using a snap

sudo snap install postman

Installing Postman

tar -xzf Postman-linux-x64-5.3.2.tar.gz
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active May 3, 2024 12:46
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@Mardiniii
Mardiniii / push_pull_heroku_database.md
Last active February 23, 2024 09:19
Pull and push DATABASE with Heroku

# Some tips to pull and push a database with Heroku

Some tips to improve test flow dealing with database on local and production environments.

I. Pull database from Heroku

It is really usefull if you want to fill your local database with real data from production environment.

1. Drop Local Database

@DaniSancas
DaniSancas / neo4j_cypher_cheatsheet.md
Created June 14, 2016 23:52
Neo4j's Cypher queries cheatsheet

Neo4j Tutorial

Fundamentals

Store any kind of data using the following graph concepts:

  • Node: Graph data records
  • Relationship: Connect nodes (has direction and a type)
  • Property: Stores data in key-value pair in nodes and relationships
  • Label: Groups nodes and relationships (optional)
@orendon
orendon / text_file.rb
Last active December 1, 2015 21:58
Create text file example
# Create basic text file
# http://ruby-doc.org/core-2.2.0/File.html
datos = [1, 2, 3, 4, 5, 7, 8]
File.open("path/to/ejemplo.txt", "w") do |f|
datos.each do |dato|
f.puts "Dato #{dato}"
end
end
@christocracy
christocracy / geofence.js
Created May 20, 2015 04:31
BackgroundGeolocation Geofence API
// Add custom longpress event for adding GeoFence with hard-coded radius 200m.
google.maps.event.addListener(app.map, 'longpress', function(e) {
if (app.geofence) {
app.geofence.setMap(null);
}
// Add the geofence with BackgroundGeolocation plugin
bgGeo.addGeofence({
identifier: 'MyGeofence',
radius: 200,
latitude: e.latLng.lat(),