Skip to content

Instantly share code, notes, and snippets.

/[Ll]ibrary/
/[Tt]emp/
/[Oo]bj/
/[Bb]uild/
/[Bb]uilds/
/AppFolders/
/Assets/AssetStoreTools*
# Visual Studio 2015 cache directory
/.vs/
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;
@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;
//"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;
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
@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
import picamera
from time import sleep
import urllib2
import urllib
import requests
camera = picamera.PiCamera()
# query_args = { 'RPI':'Active' }
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TouchInputManager : MonoBehaviour {
public enum TouchState {Stationary, Repositioning, Resizing, Rotating, Deleting};
public TouchState CurrentTouchState;
private float HoldTime = 5;
private float AccumulateTime = 0;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.UI;
namespace ChartAndGraph
{
#!/usr/bin/env python3
# Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software