Skip to content

Instantly share code, notes, and snippets.

View FelixINX's full-sized avatar
🚌
Working on Transit Tracker

Félix Desjardins FelixINX

🚌
Working on Transit Tracker
View GitHub Profile
@FelixINX
FelixINX / stops.txt
Created September 9, 2020 23:10
STM stops.txt
This file has been truncated, but you can view the full file.
stop_id,stop_code,stop_name,stop_lat,stop_lon,stop_url,location_type,parent_station,wheelchair_boarding
STATION_M118,10118,STATION ANGRIGNON,45.446466,-73.603118,,1,,2
43,10118,Station Angrignon,45.446466,-73.603118,http://www.stm.info/fr/infos/reseaux/metro/angrignon,0,STATION_M118,2
43-01,10118,Station Angrignon,45.446319,-73.603835,,2,STATION_M118,2
STATION_M120,10120,STATION MONK,45.451158,-73.593242,,1,,2
42,10120,Station Monk,45.451158,-73.593242,http://www.stm.info/fr/infos/reseaux/metro/monk,0,STATION_M120,2
42-01,10120,Station Monk - Édicule Nord,45.451307,-73.593128,,2,STATION_M120,2
42-02,10120,Station Monk - Édicule Sud,45.451007,-73.593380,,2,STATION_M120,2
STATION_M122,10122,STATION JOLICOEUR,45.457010,-73.581691,,1,,2
41,10122,Station Jolicoeur,45.457010,-73.581691,http://www.stm.info/fr/infos/reseaux/metro/jolicoeur,0,STATION_M122,2
@FelixINX
FelixINX / transittracker-pattern.html
Last active May 20, 2020 20:58
Transit Tracker Background pattern
<div data-v-48521a1e="" class="accent" style="
background-image: url(&quot;data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'%3E%3Cg fill='%232E8473' fill-opacity='0.2'%3E%3Cpath id='path-1' d='m 15,23.169146 h -30 v -12.5 h 30 m -3.75,27.5 c -2.0750002,0 -3.75,-1.675 -3.75,-3.75 0,-2.075 1.6749998,-3.75 3.75,-3.75 2.075,0 3.75,1.675 3.75,3.75 0,2.075 -1.675,3.75 -3.75,3.75 m -22.5,0 c -2.075,0 -3.75,-1.675 -3.75,-3.75 0,-2.075 1.675,-3.75 3.75,-3.75 2.0750002,0 3.75,1.675 3.75,3.75 0,2.075 -1.6749998,3.75 -3.75,3.75 m -8.75,-2.5 c 0,2.2 0.975,4.175 2.5,5.55 v 4.45 c 0,1.375 1.125,2.5 2.5,2.5 h 2.5 c 1.375,0 2.5,-1.125 2.5,-2.5 v -2.5 h 20 v 2.5 c 0,1.375 1.125,2.5 2.5,2.5 H 15 c 1.375,0 2.5,-1.125 2.5,-2.5 v -4.45 c 1.525,-1.375 2.5,-3.35 2.5,-5.55 v -25 C 20,1.9191464 11.05,0.66914591 0,0.66914591 c -11.05,0 -20,1.25000049 -20,10.00000009 z'/%3E%3Cpath d='m 275,23.169146 h -30 v -12.5 h 30 m -3.75001,27.5 c -2.07499,0 -3.74999,-1.675 -3.74999,-3.7
:root{--blue:#002858;--indigo:#4f72b8;--purple:#3b0633;--pink:#e83e8c;--red:#dc3545;--orange:#f26b50;--yellow:#ffdf01;--green:#003624;--teal:#5f9f69;--cyan:#28aba9;--white:#fff;--gray:#6c757d;--gray-dark:#343a40;--primary:#002858;--secondary:#f26b50;--success:#5f9f69;--info:#28aba9;--warning:#ffdf01;--danger:#dc3545;--light:#f8f9fa;--dark:#555961;--breakpoint-xs:0;--breakpoint-sm:576px;--breakpoint-md:768px;--breakpoint-lg:992px;--breakpoint-xl:1200px;--font-family-sans-serif:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-family-monospace:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}*,::after,::before{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}article,aside,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}body{margin:0;font-family:-ap
int xPin = A1;
int yPin = A0;
int buttonPin = 2;
int xPosition = 0;
int yPosition = 0;
int buttonState = 0;
void setup() {
// initialize serial communications at 9600 bps:
#include <virtuabotixRTC.h>
// Creation of the Real Time Clock Object
//SCLK -> 6, I/O -> 7, CE -> 8
virtuabotixRTC myRTC(5, 6, 7);
void setup() {
Serial.begin(9600);
// Set the current date, and time in the following format:
@FelixINX
FelixINX / ArduinoLCDFinder.ino
Created August 29, 2016 15:18
Vous permet de trouver l'adresse de votre écran LCD
// --------------------------------------
// i2c_scanner
//
// Version 1
// This program (or code that looks like it)
// can be found in many places.
// For example on the Arduino.cc forum.
// The original author is not know.
// Version 2, Juni 2012, Using Arduino 1.0.1
// Adapted to be as simple as possible by Arduino.cc user Krodal
@FelixINX
FelixINX / carmp3IR.ino
Created August 29, 2016 14:46
Car MP3 code source - mappage des télécommandes
/* YourDuino.com Example Software Sketch
IR Remote Kit Test
Uses YourDuino.com IR Infrared Remote Control Kit 2
http://arduino-direct.com/sunshop/index.php?l=product_detail&p=153
based on code by Ken Shirriff - http://arcfn.com
Get Library at: https://github.com/shirriff/Arduino-IRremote
Unzip folder into Libraries. RENAME folder IRremote
terry@yourduino.com */
/*-----( Import needed libraries )-----*/

Keybase proof

I hereby claim:

  • I am felixinx on github.
  • I am felixinx (https://keybase.io/felixinx) on keybase.
  • I have a public key whose fingerprint is 3682 53E5 F1DE DA1F 3895 A052 FB9D DB58 94A5 2B2B

To claim this, I am signing this object:

urlpatterns = [
url(r'^admin/', admin.site.urls),
]
to
urlpatterns = i18n_patterns [
url(r'^admin/', admin.site.urls),
]