Skip to content

Instantly share code, notes, and snippets.

View pragyanatvade's full-sized avatar
🐢
On a mission to make software development easier.

Pragyan Tripathi pragyanatvade

🐢
On a mission to make software development easier.
View GitHub Profile
@pragyanatvade
pragyanatvade / svg_component.js
Created March 19, 2015 11:05
React SVG Component
/** @jsx React.DOM */
var SVGComponent = React.createClass({
render: function() {
return this.transferPropsTo(
<svg>{this.props.children}</svg>
);
}
});
@pragyanatvade
pragyanatvade / React Tutorial
Created March 17, 2015 08:34
React Unidirectional Data Flow
var FilteredList = React.createClass({
filterList: function(event){
var updatedList = this.state.initialItems;
updatedList = updatedList.filter(function(item){
return item.toLowerCase().search(
event.target.value.toLowerCase()) !== -1;
});
this.setState({items: updatedList});
},
getInitialState: function(){
@pragyanatvade
pragyanatvade / Useful Links
Last active August 29, 2015 14:16
Useful Links
@pragyanatvade
pragyanatvade / Vagrantfile
Last active August 29, 2015 14:16
Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
domain = "example.com"
settings = {
:hostname => "adam",
:box => "ubuntu/trusty64",
@pragyanatvade
pragyanatvade / nexus_linux
Last active September 5, 2022 07:38
Nexus 5 - MTP Driver Linux Mint
Step 1: Setting > About Phone > Start Tapping (7 times) on Build number option 'you are now developer'.
Setting > Developer Options > Enable USB Debugging
Step 2: sudo apt-get instal mtp-tools mtpfs
Step 3: sudo gedit /etc/udev/rules.d/51-android.rules
#LG – Nexus 5
ATTR{idVendor}=="18d1", ATTR{idProduct}=="4ee7", MODE=”0666"
Step 4: sudo chmod +x /etc/udev/rules.d/51-android.rules
@pragyanatvade
pragyanatvade / cuda_install.md
Last active August 20, 2016 03:49
Installing CUDA 6.5 In Linux Mint 17

Setting Up CUDA Repository

Cuda Downloads

sudo dpkg -i cuda-repo-ubuntu1404_6.5-14_amd64.deb

sudo apt-get update