Skip to content

Instantly share code, notes, and snippets.

View DarkSector's full-sized avatar
🏗️
Building stuff

Pronoy Chopra DarkSector

🏗️
Building stuff
View GitHub Profile
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
body {
margin: 0 auto;
line-height: 1.7em;
}
clc;
clear;
% Start with importing the video
vidObj = VideoReader('/Users/DarkSector/Desktop/vid2.avi');
% Once loaded lets get the first frame and choose an ROI on it
frame1 = read(vidObj, 1);
% now let's show the image and select the ROI on it
clc;
clear;
% Start with importing the video
vidObj = VideoReader('/Users/DarkSector/Desktop/vid2.avi');
% Once loaded lets get the first frame and choose an ROI on it
frame1 = read(vidObj, 1);
% now let's show the image and select the ROI on it
@DarkSector
DarkSector / attempt3
Created December 7, 2013 02:26
How to create those arrays!
clc;
clear;
% Start with importing the video
vidObj = VideoReader('/Users/DarkSector/Desktop/vid.avi');
% Once loaded lets get the first frame and choose an ROI on it
frame1 = read(vidObj, 1);
% now let's show the image and select the ROI on it
@DarkSector
DarkSector / attempt2
Created December 7, 2013 00:31
Putting the whole process in the loop
clc;
clear;
% Start with importing the video
vidObj = VideoReader('/Users/DarkSector/Desktop/vid.avi');
% Once loaded lets get the first frame and choose an ROI on it
frame1 = read(vidObj, 1);
% now let's show the image and select the ROI on it
@DarkSector
DarkSector / attempt1
Last active December 30, 2015 12:39
Matlab video manipulation
clc;
clear;
% Start with importing the video
vidObj = VideoReader('/Users/DarkSector/Desktop/vid.avi');
% Once loaded lets get the first frame and choose an ROI on it
frame1 = read(vidObj, 1);
@app.route('/panel/product/upload/image', methods=['POST'])
def upload_product_image():
image_name = flask.request.args['qqfile']
product_image_path = os.path.join(app_config('PRODUCT_IMAGES'), image_name)
product_thumbnail_path = os.path.join(app_config('PRODUCT_IMAGES_THUMBNAILS'), image_name)
with open(product_image_path, 'w') as fh:
fh.write(flask.request.stream.read())
{"nodes":[{"name":"Myriel","group":1},{"name":"Napoleon","group":1},{"name":"Mlle.Baptistine","group":1},{"name":"Mme.Magloire","group":1},{"name":"CountessdeLo","group":1},{"name":"Geborand","group":1},{"name":"Champtercier","group":1},{"name":"Cravatte","group":1},{"name":"Count","group":1},{"name":"OldMan","group":1},{"name":"Labarre","group":2},{"name":"Valjean","group":2},{"name":"Marguerite","group":3},{"name":"Mme.deR","group":2},{"name":"Isabeau","group":2},{"name":"Gervais","group":2},{"name":"Tholomyes","group":3},{"name":"Listolier","group":3},{"name":"Fameuil","group":3},{"name":"Blacheville","group":3},{"name":"Favourite","group":3},{"name":"Dahlia","group":3},{"name":"Zephine","group":3},{"name":"Fantine","group":3},{"name":"Mme.Thenardier","group":4},{"name":"Thenardier","group":4},{"name":"Cosette","group":5},{"name":"Javert","group":4},{"name":"Fauchelevent","group":0},{"name":"Bamatabois","group":2},{"name":"Perpetue","group":3},{"name":"Simplice","group":2},{"name":"Scaufflaire","group":2},
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?2.1.3"></script>
<style type="text/css">
.link {
stroke: #23ff23;
}