Skip to content

Instantly share code, notes, and snippets.

View j15e's full-sized avatar

Jean-Philippe Doyle j15e

View GitHub Profile
Running RuboCop...
For /Users/j15e/repos/project: configuration from /Users/j15e/repos/project/.rubocop.yml
Inspecting 173 files
Scanning /Users/j15e/repos/project/Guardfile/...
.Scanning /Users/j15e/repos/project/Rakefile/...
.Scanning /Users/j15e/repos/project/app/...
.Scanning /Users/j15e/repos/project/app/...
.Scanning /Users/j15e/repos/project/app/...
.Scanning /Users/j15e/repos/project/app/...
.Scanning /Users/j15e/repos/project/app/...
@j15e
j15e / exemple.ino
Created September 8, 2018 02:08
exemple arduino québec
#include "StandStats.h"
#include <Adafruit_GFX.h>
#include "Adafruit_LEDBackpack.h"
#include <Time.h>
#include <TimeLib.h>
#include <Preferences.h>
#include <driver/adc.h>
#include <Wire.h>
#include "WiFi.h"
const int GAUCHE = 11;
const int BARRE = 10;
const int DROITE = 9;
const int BOUTON = A0;
int val;
int oldVal;
int counter = 5;
int delay1 = 1250;
int lastToggle = 0;
@j15e
j15e / add_frozen_string_comment.py
Created July 4, 2019 21:00
Sublime Text 3 automatically add frozen string literal: true
# Add to ~/Library/Application Support/Sublime Text 3/Packages/User/
import sublime
import sublime_plugin
class RubyFileSaveListener(sublime_plugin.EventListener):
def on_pre_save(self, view):
file_name = view.file_name()
if file_name.endswith('schema.rb'):
return