Skip to content

Instantly share code, notes, and snippets.

import picamera
from time import sleep
import urllib2
import urllib
import requests
camera = picamera.PiCamera()
# query_args = { 'RPI':'Active' }
@minakhan01
minakhan01 / flask
Created January 30, 2018 00:22
flask server setup
1 git clone https://github.com/minakhan01/PersonalizedFaceDetection.git
2 sudo apt-get install python-virtualenv
3 sudo pip install virtualenv
4 sudo apt-get install python-virtualenvsudo apt-get update
5 sudo apt-get update
6 sudo apt-get install python-virtualenvsudo
7 sudo apt-get install python-virtualenv
8 ls
9 cd PersonalizedFaceDetection/
10 virtualenv venv
root@ubuntu-2gb-nyc3-01:~# history
1 ls
2 vi script.sh
3 sudo apt-get update
4 sudo apt-get install git
5 git config --global user.name "Mina Khan"
6 git config --global user.email "minakhan01@gmail.com"
7 git config --list
8 sudo apt-get install nodejs
9 sudo apt-get install npm
//"RBL_nRF8001.h/spi.h/boards.h" is needed in every new project
#include <SPI.h>
#include <EEPROM.h>
#include <boards.h>
#include <RBL_nRF8001.h>
bool isSalution = false;
bool isRhymeSkill = false;
bool isOtherChat = false;
@minakhan01
minakhan01 / xin.java
Created August 16, 2017 02:16
ars_xin
package cafe.adriel.androidaudiorecorder.example;
import android.Manifest;
import android.content.Intent;
import android.graphics.drawable.ColorDrawable;
import android.media.MediaPlayer;
import android.net.Uri;
import android.os.Bundle;
import android.os.Environment;
import android.support.v4.content.ContextCompat;
package cafe.adriel.androidaudiorecorder.example;
import android.Manifest;
import android.content.Intent;
import android.graphics.drawable.ColorDrawable;
import android.os.Bundle;
import android.os.Environment;
import android.support.v4.content.ContextCompat;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
/[Ll]ibrary/
/[Tt]emp/
/[Oo]bj/
/[Bb]uild/
/[Bb]uilds/
/AppFolders/
/Assets/AssetStoreTools*
# Visual Studio 2015 cache directory
/.vs/
using UnityEngine;
using System.Threading.Tasks;
using Windows.Storage.Streams;
#if NETFX_CORE
using System;
using Windows.Devices.Enumeration;
using Windows.Devices.Bluetooth;
using Windows.Devices.Bluetooth.GenericAttributeProfile;
using Windows.Devices.Bluetooth.Advertisement;
#endif
using UnityEngine;
using System.Threading.Tasks;
using Windows.Storage.Streams;
#if NETFX_CORE
using System;
using Windows.Devices.Enumeration;
using Windows.Devices.Bluetooth;
using Windows.Devices.Bluetooth.GenericAttributeProfile;
using Windows.Devices.Bluetooth.Advertisement;
#endif
using UnityEngine;
using System.Threading.Tasks;
using Windows.Storage.Streams;
#if NETFX_CORE
using System;
using Windows.Devices.Enumeration;
using Windows.Devices.Bluetooth;
using Windows.Devices.Bluetooth.GenericAttributeProfile;
using Windows.Devices.Bluetooth.Advertisement;
#endif