Skip to content

Instantly share code, notes, and snippets.

View llemonS's full-sized avatar
🌍
Citizen of the world.

llemonS llemonS

🌍
Citizen of the world.
View GitHub Profile
@eznj
eznj / star_wars.ino
Last active September 26, 2023 18:24
Arduino Star Wars Song
const int c = 261;
const int d = 294;
const int e = 329;
const int f = 349;
const int g = 391;
const int gS = 415;
const int a = 440;
const int aS = 455;
const int b = 466;
const int cH = 523;
@alexandre
alexandre / restful_python_ops.md
Last active June 6, 2022 19:08
Algumas opções em Python para criar APIs Restful

Resumo: funções

map, zip, filter e reduce

Diferenças entre Python 2.x e Python 3.x

Em Python 2.x, essas funções devolvem listas enquanto que, em Python 3, devolvem geradores. Para usar estes geradores como listas (assim como em Python 2.x), apenas aplique list ao resultado.
Por exemplo:

/*
This complex software code was amended by AABIDA Abderrahim To fit Shield L293D v1 , Please mention the source of this code maker Because of the effort he spent to modify this code .
My Email : abderrahim.aabida@gmail.com
my compte Facebook : https://www.facebook.com/Abderrahim.Aabida
Mini CNC Plotter firmware, based in TinyCNC https://github.com/MakerBlock/TinyCNC-Sketches
Send GCODE to this Sketch using gctrl.pde https://github.com/damellis/gctrl
Convert SVG to GCODE with MakerBot Unicorn plugin for Inkscape available here https://github.com/martymcguire/inkscape-unicorn
More information about the Mini CNC Plotter here (german, sorry): http://www.makerblog.at/2015/02/projekt-mini-cnc-plotter-aus-alten-cddvd-laufwerken/
*/
/*******************************************************************
* An example of bot that receives commands and turns on and off *
* an LED. Mod to control AC with SSR, and read from DHT22 *
* *
* written by Giacarlo Bacchio (Gianbacchio on Github) *
* adapted by Brian Lough *
* mod by teos00009 *
*******************************************************************/
//arduinojson on v1.8.0
@livingmentor
livingmentor / MortalKombat.ino
Last active January 30, 2022 00:08
Mortal Kombat Movie Theme Arduino
// Variables A1-A5 are reserved on Arduino, So I renamed my Ax notes to AAx.
// Rights to the song obviously don't belong to me. blah blah, legal words, blah blah.
const int C2 = 65;
const int Db2 = 69;
const int D2 = 73;
const int Eb2 = 78;
const int E2 = 82;
const int F2 = 87;
const int Gb2 = 93;
@brizandrew
brizandrew / server.py
Last active December 19, 2023 10:16
Simple Flask Webhook Example
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from flask import Flask, request
from urllib import unquote_plus
import json
import re
app = Flask(__name__)