Skip to content

Instantly share code, notes, and snippets.

View ivikash's full-sized avatar

Vikash Agrawal ivikash

View GitHub Profile
@ivikash
ivikash / hackerrank_javascript_input.js
Created February 27, 2017 12:53
This demonstrates how to take user input in Javascript -- recommended for Hackerrank Challenges / CodePari.
// HACKERANK - JAVASCRIPT INPUT
// start processing user input
process.stdin.resume();
process.stdin.setEncoding('ascii');
// declare global variables
var input_stdin = "";
var input_stdin_array = "";
var input_currentline = 0;
// standard input is stored into input_stdin
@ivikash
ivikash / 1_notmnist.ipynb
Created January 27, 2017 12:45
UD 730 - Udacity Introduction to deep learning
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ivikash
ivikash / mpd.conf
Created August 4, 2016 07:15
Config file for Music Player Daemon (MPD) on Mac OSX
# Basic configuration
music_directory "~/Music"
playlist_directory "~/.mpd/playlists"
db_file "~/.mpd/mpd.db"
log_file "~/.mpd/mpd.log"
pid_file "~/.mpd.pid"
state_file "~/.mpd/mpdstate"
# Audio configuration
<script type="text/javascript" src="RDFaProcessor.1.2.0.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script type="text/javascript" src="../playground/js_beautify.js"></script>
<script type="text/javascript">
$('#saveSchema')
.off('click')
.on('click', function() {
"use strict";
var baseURI = 'http://schema.org/';
{
"@context": {
"about": {
"@id": "http://schema.org/about",
"@type": "@id"
},
"acceptedPaymentMethod": {
"@id": "http://schema.org/acceptedPaymentMethod",
"@type": "@id"
},
{
"@context": {
"alumniOf": {
"@id": "http://schema.org/alumniOf",
"@type": "@id"
},
"date": {
"@id": "http://schema.org/Date",
"@type": "xsd:date"
},
{
"@context": {
"alumniOf": {
"@id": "http://schema.org/alumniOf",
"@type": "@id"
},
"date": {
"@id": "http://schema.org/Date",
"@type": "xsd:date"
},
{
"givenName": "Manu",
"familyName": "Sporny",
"image": "http://m.c.lnkd.licdn.com/mpr/mprx/0_yHCbiqwqTs-KLVTZOW5qinOJiMT85VhZOEn4in4dpyvKsYc4ratwS9uFDc3x6j3NgI8M2Ao61jdE",
"url": "http://www.linkedin.com/in/manusporny",
"homeLocation": "Roanoke, Virginia Area",
"description": "Founder and CEO of Digital Bazaar - leading the creation of the worlds first universal payment standard for the Web",
"alumniOf": [
{
"name": "Marshall University"
{
"_total": 1,
"values": [{
"_key": "~",
"connections": {
"_total": 727
},
"dateOfBirth": {
"day": 21,
"month": 10,
@ivikash
ivikash / Place.json
Last active December 20, 2015 15:59
{
"@context": {
"name": "http://schema.org/name",
"xsd": "http://www.w3.org/2001/XMLSchema#",
"description": "http://schema.org/description",
"image": {
"@id": "http://schema.org/image",
"@type": "@id"
},
"geo": "http://schema.org/geo",