This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package rish.crearo.imagestablization.camera; | |
import android.content.Context; | |
import android.opengl.GLES20; | |
import android.util.Log; | |
import java.io.ByteArrayOutputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.util.HashMap; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string.h> | |
#include <gst/gst.h> | |
#include <signal.h> | |
#include <unistd.h> | |
#include <stdlib.h> | |
#include <stdio.h> | |
// udpsrc port=8554 caps="application/x-rtp, media=(string)video, clock-rate=(int)90000, width=(int)720, height=(int)480, encoding-name=(string)H264, payload=(int)96" ! | |
// rtpjitterbuffer name=rtpjitbuff ! rtph264depay ! | |
// tee name=t t. ! avdec_h264 ! appsink name=sink sync=false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string.h> | |
#include <gst/gst.h> | |
#include <signal.h> | |
#include <unistd.h> | |
#include <stdlib.h> | |
#include <stdio.h> | |
// v4l2src ! tee name=t t. ! x264enc ! mp4mux ! filesink location=/home/rish/Desktop/okay.264 t. ! videoconvert ! autovideosink | |
static GMainLoop *loop; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string.h> | |
#include <gst/gst.h> | |
#include <signal.h> | |
#include <unistd.h> | |
#include <stdlib.h> | |
// v4l2src ! tee name=t t. ! x264enc ! mp4mux ! filesink location=/home/rish/Desktop/okay.264 t. ! videoconvert ! autovideosink | |
static GMainLoop *loop; | |
static GstElement *pipeline, *src, *tee, *encoder, *muxer, *filesink, *videoconvert, *videosink, *queue_record, *queue_display; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string.h> | |
#include <gst/gst.h> | |
#include <signal.h> | |
#include <unistd.h> | |
#include <stdlib.h> | |
// gst-launch-1.0 v4l2src ! x264enc ! mp4mux ! filesink location=/home/rish/Desktop/okay.264 -e | |
static GMainLoop *loop; | |
static GstElement *pipeline, *src, *encoder, *muxer, *sink; | |
static GstBus *bus; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class StackWithMinMax extends Stack<Integer> { | |
private Stack<Integer> minStack; | |
private Stack<Integer> maxStack; | |
public StackWithMinMax () { | |
minStack = new Stack<Integer>(); | |
maxStack = new Stack<Integer>(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.awt.Point; | |
public class EightQueens { | |
/** | |
* @param args | |
*/ | |
public static void main(String[] args) { | |
boolean board[][] = new boolean[8][8]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.util.Log; | |
import com.orm.SugarRecord; | |
import com.orm.query.Condition; | |
import com.orm.query.Select; | |
import com.orm.util.NamingHelper; | |
/** | |
* Created by rish on 6/5/16. | |
* This is an example of how to use SugarORM (https://github.com/satyan/sugar) - a brilliant lightweight sql handler for Android |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import Flask, jsonify, request, make_response | |
from flask.ext.httpauth import HTTPBasicAuth | |
from flask_sqlalchemy import SQLAlchemy | |
from flask import render_template, redirect, url_for | |
from sqlalchemy import UniqueConstraint, exc | |
app = Flask(__name__) | |
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///memes.db' | |
app.config['SECRET_KEY'] = 'HALO' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lines = tuple(open("Books", "r")) | |
for line in lines: | |
print line.split(';')[0] | |
count = 0 | |
for item in finalitems: | |
print '{"ISBN":"' + item[0] + '",'+ '"place":"' + item[2] + '","accesionNumber":"' + item[1] + '"}' | |
count += 1 |