Skip to content

Instantly share code, notes, and snippets.

View iiitmahesh's full-sized avatar

Mahesh Karthu iiitmahesh

  • Amotion AI
  • Dubai, UAE
View GitHub Profile
@iiitmahesh
iiitmahesh / install_arcanist.bash
Created June 15, 2017 12:31 — forked from tals/install_arcanist.bash
install arcanist (OSX)
#!/bin/bash
dir="~/Applications/arcanist/"
eval dir=$dir
if [ -d "$dir" ]; then
printf "arc already installed. Remove and install again? (y/n) "
read answer
if [ "$answer" != "y" ]; then
exit
fi
rm -fR "$dir"
@iiitmahesh
iiitmahesh / app.js
Created May 5, 2017 13:24 — forked from felipecsl/app.js
Sample use of react-native-maps with a tabbed layout
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
TouchableOpacity,
Text,
ViewPagerAndroid,
View,
} from 'react-native';
import MapView from 'react-native-maps';
@iiitmahesh
iiitmahesh / nodejs-tcp-example.js
Created March 29, 2017 01:52 — forked from tedmiston/nodejs-tcp-example.js
Node.js tcp client and server example
/*
In the node.js intro tutorial (http://nodejs.org/), they show a basic tcp
server, but for some reason omit a client connecting to it. I added an
example at the bottom.
Save the following server in example.js:
*/
var net = require('net');
hey this test code