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 javax.script.ScriptEngineManager; | |
import javax.script.ScriptEngine; | |
import java.util.Scanner; | |
class Script{ | |
public static void main(String args[])throws IOException | |
{ | |
Scanner me = new Scanner(System.in); | |
System.out.println("Enter 2 numbers:"); | |
String numOne = me.nextLine(); |
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 <iostream> | |
using namespace std; | |
struct BSTNode{ | |
int value; | |
BSTNode* left; | |
BSTNode* right; | |
}; |
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.util.ArrayList; | |
import java.util.Scanner; | |
class Node<T> { | |
public int value; | |
public Node left; | |
public Node right; | |
public Node(int value) { |
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
/* | |
* Copyright (c) 2014. This Project is the requirement of the course at NYIT-Old Westbury and should not be used in any commercial or personal use unless permitted by the author of the code. This code is the property of Rishabh Mehan and he holds the rights to re-distribute and re-use this code. | |
*/ | |
/** | |
* Created by rishabh on 12/7/14. | |
**/ | |
import java.util.*; |
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
// final.cpp : main project file. | |
#include "stdafx.h" | |
#ifdef _CH_ | |
#pragma package <opencv> | |
#endif | |
#ifndef _EiC | |
#include "cv.h" | |
#include "highgui.h" |
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
git checkout master && git branch -l | sed 's/* master//' > /tmp/gitlocal.txt && git branch -r | sed 's/origin\///' > /tmp/gitremote.txt && grep -Fxv -f /tmp/gitremote.txt /tmp/gitlocal.txt | xargs git branch -d |
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
var _ = require('lodash'); | |
function HashTags(text) { | |
var adding = false; | |
var d = ""; | |
var t = ""; | |
return _.filter(_.map(text, function (c, k) { | |
if (c === '#' || (c === ' ')) { | |
if (adding) { | |
t = d; | |
d = ""; |
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 url("https://fonts.googleapis.com/css?family=Roboto:300,400,500,700");/*! | |
* bootswatch v3.3.7 | |
* Homepage: http://bootswatch.com | |
* Copyright 2012-2016 Thomas Park | |
* Licensed under MIT | |
* Based on Bootstrap | |
*//*! | |
* Bootstrap v3.3.7 (http://getbootstrap.com) | |
* Copyright 2011-2016 Twitter, Inc. | |
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) |
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 url("https://fonts.googleapis.com/css?family=Roboto:300,400,500,700");/*! | |
* bootswatch v3.3.7 | |
* Homepage: http://bootswatch.com | |
* Copyright 2012-2016 Thomas Park | |
* Licensed under MIT | |
* Based on Bootstrap | |
*//*! | |
* Bootstrap v3.3.7 (http://getbootstrap.com) | |
* Copyright 2011-2016 Twitter, Inc. | |
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) |
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
getCurrentLocation = async () => { | |
return new Promise((resolve, reject) => { | |
navigator.geolocation.getCurrentPosition( | |
(position) => { | |
resolve({ | |
latitude: parseFloat(position.coords.latitude), | |
longitude: parseFloat(position.coords.longitude), | |
latitudeDelta: 5, | |
longitudeDelta: 5, | |
}) |
OlderNewer