Skip to content

Instantly share code, notes, and snippets.

from flask import Flask
import schedule
import time
import pdb
import pygame
import threading
app = Flask(__name__)
def run_continuously(self=schedule, interval=1):
@prrraveen
prrraveen / main.cpp
Created June 15, 2016 19:11
Toggle Led Qt code
#include "dialog.h"
#include <QApplication>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
Dialog w; // a dialog window to peform keyboard action.
w.show();
return a.exec();
@prrraveen
prrraveen / sketch.ino
Last active June 15, 2016 19:01
Toggle Led Tutorial Ardunio Sketch
#define led 13 //led connected to pin 13
void setup()
{
pinMode(led, OUTPUT); //set pin 13 to output mode
Serial.begin(9600); // assiging baud rate and begining serail commuication
}
int ledState = LOW; //a flag to keep track led current state. initial to LOW

Recommended Stack

  • React JS for views
  • React Router for routing
  • Redux for storing data
  • Service Worker for cachine resource

Why Reactjs

@prrraveen
prrraveen / index.html
Created April 1, 2016 06:35 — forked from anonymous/index.html
JS Bin simple counter application // source https://jsbin.com/walaxo
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="simple counter application">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script src="https://npmcdn.com/expect/umd/expect.min.js"></script>
@prrraveen
prrraveen / main.css
Created March 1, 2016 05:47
toggle navbar between transparent and flat ui
.navigation.transparent{
margin: 0 auto;
overflow: hidden;
font-weight: 600;
background-color: rgba(0,0,0,0.25);
border-color: transparent;
// color: #fff !important;
@include border-radius(0px);
@include box-shadow(0 0 0 0);
Details
/**
* Request_outletController
*
* @description :: Server-side logic for managing request_outlets
* @help :: See http://links.sailsjs.org/docs/controllers
*/
var async = require('async');
var moment = require('moment');
RUN sudo dpkg --add-architecture i386 && apt-get -qq update && apt-get -qq dist-upgrade && apt-get install -qq -y --no-install-recommends \
git \
openssh-client \
ca-certificates \
make \
default-jdk \
ant \
curl \
p7zip \
libsm6 \
                                  || Shree Ganeshay Namah ||
                      Vartika & Manish invites your gracious presence on 
                                      their wedding 
                                          ON
                                       15th Feb
            Groom's Family                                                          Bride's family
   Mrs. Maya Yadav && Mr. Rajesh Yadav                                      Mrs. Urmila Yadav && Mr. Subhash Yadav 
#!html
<pre>
<strong>[<strong style="color: green;">tecmint</strong>@tecmint.com ~]$ sudo ssh-keygen -t rsa
</strong>

Generating public/private rsa key pair.
Enter file in which to save the key (/home/tecmint/.ssh/id_rsa): <span style="color: red;">[Press enter key]</span>
Created directory '/home/tecmint/.ssh'.
Enter passphrase (empty for no passphrase): <span style="color: red;">[Press enter key]</span>