Commands for controlling the Raspberry Pi 2 LEDs.
See rpi-leds for a node module that does this.
- OK (ACT) LED =
led0 - Power (PWR) LED =
led1
Allow access
| /* | |
| A set of custom made large numbers for a 16x2 LCD using the | |
| LiquidCrystal librabry. Works with displays compatible with the | |
| Hitachi HD44780 driver. | |
| The Cuicuit: | |
| LCD RS pin to D12 | |
| LCD Enable pin to D11 | |
| LCD D4 pin to D5 | |
| LCD D5 pin to D4 |
| #!/usr/bin/python | |
| import os, time | |
| import usb.core | |
| import usb.util | |
| import pygtk | |
| pygtk.require('2.0') | |
| import gtk | |
| from sys import exit | |
| import math |
| /* | |
| Hoje iremos MUDAR a vida da pessoa que não te responde no whatsappp... | |
| Que tal enviar mensagens pra ela até obter uma resposta?! | |
| Sensacional não acha?! Mas, somos devs, correto?! Então vamos automatizar esse paranauê! | |
| Para utilizar: | |
| - Abra o web.whatsapp.com; | |
| - Selecione a conversa que você quer; | |
| - Abra o console e cole o código que está no gist; |
| /* | |
| Hoje iremos MUDAR a vida da pessoa que não te responde no Facebook... | |
| Que tal enviar mensagens pra ela até obter uma resposta?! | |
| Sensacional não acha?! Mas, somos devs, correto?! Então vamos automatizar esse paranauê! | |
| Para utilizar: | |
| - Abra o messenger.com; | |
| - Selecione a conversa que você quer; | |
| - Abra o console e cole o código que está no gist; |
| #!/usr/bin/python | |
| #-*- coding: UTF-8 -*- | |
| import os, time | |
| import usb.core | |
| import usb.util | |
| import pygtk | |
| pygtk.require('2.0') | |
| import gtk | |
| from sys import exit |
Commands for controlling the Raspberry Pi 2 LEDs.
See rpi-leds for a node module that does this.
led0led1Allow access
| from __future__ import print_function | |
| from random import randint | |
| import requests | |
| import string | |
| import random | |
| import time | |
| import sys | |
| import argparse | |
| __author__ = 'Ronivaldo <[email protected]>' |
| import requests | |
| def criar_contas(numero): | |
| cookies = { | |
| } | |
| headers = { | |
| 'Connection': 'keep-alive', | |
| 'Cache-Control': 'max-age=0', |
| # Hanna moves in a lattice where every point can be represented by a pair of integers. | |
| # She moves from point A to point B and then takes a turn 90 degrees rightand starts | |
| # moving till she reaches the first point on the lattice. Find what's the | |
| # point she would reach? | |
| # A' . | | |
| # . | | |
| # . | . . . A | |
| # . | . | |
| # ------------------------- | |
| # | |