Skip to content

Instantly share code, notes, and snippets.

var ssid = "DCC-LCI";
var password = "aluno.dcc!";
//wifi config and connect
var wifi;
var ip;
var wifi = require("Wifi");
wifi.connect(ssid, {password:password}, function(e) {
if (e) {
@sottam
sottam / FumantesUsandoMutex.cs
Last active September 11, 2018 19:45
Solução para o problema do "Cigarrete Smokers" usando Mutex e C#. Alem disso, os fumantes ou pegam tudo da mesa, ou nada. Assim evita o deadlock.
using System;
using System.Threading;
namespace FumantesEmCSharp
{
class Program
{
static void Main(string[] args)
{
FumantesUsandoMutex ProblemaDosFumantes = new FumantesUsandoMutex();
#include <Arduino.h>
#include <FastLED.h>
//DIGITAL STRIP SIDES
// #define DATA_PIN 22
// #define CLK_PIN 23
//DIGITAL STRIP SIDES
#define DATA_PIN 8
#define CLK_PIN 9
@sottam
sottam / delorean.motd
Last active April 8, 2022 17:42
Motd ascii art used on my ubuntu dev server e script para inicialização da máquina virtual | credits to @spcmd for the DeLorean ascii art!
__---~~~~--__ __--~~~~---__ ____ __
`\---~~~~~~~~\\ //~~~~~~~~---/' / __ \___ / / ____ ________ ____ _____
\/~~~~~~~~~\|| ||/~~~~~~~~~\/ / / / / _ \/ / / __ \/ ___/ _ \/ __ `/ __ \
`\\ //' / /_/ / __/ /___/ /_/ / / / __/ /_/ / / / /
`\\ //' /_____/\___/_____/\____/_/ \___/\__,_/_/ /_/
|| || Hey Doc! / __ \___ _ __
______--~~~~~~~~~~~~~~~~~~--______ / / / / _ \ | / /
___ // _-~ ~-_ \\ ___ / /_/ / __/ |/ /
`\__)\/~ ~\/(__/' /_____/\___/|___/