Skip to content

Instantly share code, notes, and snippets.

View iwano's full-sized avatar
🎯
Focusing

ivan calderon iwano

🎯
Focusing
View GitHub Profile
@ultrox
ultrox / resources.md
Last active June 30, 2023 22:54
Building Dactyl
@louisameline
louisameline / windowMouseOutFix.js
Last active July 21, 2023 13:42
Electron: workaround for issue #611
/**
* Work around for https://github.com/electron/electron/issues/611
* This snippet will check if the cursor has left the window, and trigger
* mouse events accordingly. It even works with -webkit-app-region areas,
* which usually don't send any mouse events, so it's pretty cool. You
* can see the result in this gif: http://s214903023.onlinehome.fr/divers/fix.gif
* Help is welcome for improvement, for example to remove the dependency to
* jQuery.
*
* Caveats:it triggers too many events. For example when the mouse
@thegitfather
thegitfather / vanilla-js-cheatsheet.md
Last active May 2, 2024 07:32
Vanilla JavaScript Quick Reference / Cheatsheet
@zulhfreelancer
zulhfreelancer / heroku_pg_db_reset.md
Last active January 29, 2024 10:09
How to reset PG Database on Heroku (for Rails app)?

It's important to note that running this reset will drop any existing data you have in the application

How to reset PG Database on Heroku?

  • Step 1: heroku restart
  • Step 2: heroku pg:reset DATABASE (no need to change the DATABASE)
  • Step 3: heroku run rake db:migrate
  • Step 4: heroku run rake db:seed (if you have seed)

One liner

@Dr-Nikson
Dr-Nikson / README.md
Last active June 8, 2023 12:04
Auth example (react + redux + react-router)
@nolanlawson
nolanlawson / promises_answer_sheet.md
Last active July 26, 2022 08:02
Promises puzzle cheat sheet
@tschaub
tschaub / AngularStyle.md
Last active December 20, 2016 15:28
Opinionated whitespace guide for AngularJS modules

AngularJS Whitespace Guide

The purpose of this style guide is to suggest formatting conventions for AngularJS modules that result in readible, maintainable, and lint free code (see the linter configurations for JSHint and gjslint.py.

All-in-one example

Typically, an AngularJS application would be structured with many modules in separate files. The example below shows a monolithic module to illustrate the formatting conventions for various module methods.

angular.module('module.name', [

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: