Skip to content

Instantly share code, notes, and snippets.

View priyankark's full-sized avatar
🎯
Focusing

Priyankar Kumar priyankark

🎯
Focusing
View GitHub Profile
class Solution {
public:
int myAtoi(string str) {
int ans=0;
int p=0;
if(str.length()==0)
return 0;
char sign=' ';
for(int i=0;i<str.length();i++)
@priyankark
priyankark / understanding-word-vectors.ipynb
Created March 2, 2018 14:40 — forked from aparrish/understanding-word-vectors.ipynb
Understanding word vectors: A tutorial for "Reading and Writing Electronic Text," a class I teach at ITP. (Python 2.7) Code examples released under CC0 https://creativecommons.org/choose/zero/, other text released under CC BY 4.0 https://creativecommons.org/licenses/by/4.0/
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@priyankark
priyankark / Node-and -MongoDB -basics.txt
Last active September 26, 2016 16:42
MEAN Stack notes: From the book Web Development with MongoDB and NodeJS: Packt
JavaScript primer
->var keyword for a vraibale
->Data types: Number,String, Boolean, Object, Null, Undefined
->Null points to a deliberate non value whereas undefined points to an uinitialized value
Scoping
->Javascript has functional level scoping over block level scoping
-> What happens if you miss the var keyword
(function(){
(function(){