Skip to content

Instantly share code, notes, and snippets.

View BastinRobin's full-sized avatar
🔬
Trying Odd's on daily basis ;)

Bastin Robin BastinRobin

🔬
Trying Odd's on daily basis ;)
View GitHub Profile
@BastinRobin
BastinRobin / mentalhealth.md
Last active May 29, 2019 04:18
Mental Health in Tech Survey Problem

This dataset is from a 2014 survey that measures attitudes towards mental health and frequency of mental health disorders in the tech workplace. You are also encouraged to analyze data from the ongoing 2016 survey found here.

Content This dataset contains the following data:

  • Timestamp
  • Age
  • Gender
  • Country
@BastinRobin
BastinRobin / election.csv
Created May 27, 2019 08:03
Election Dataset
party constituency name margin state votes color
Haryana Janhit Congress (BL) Adampur KULDEEP BISHNOI 17249 Haryana 56757 #999
Bharatiya Janata Party Ambala Cantt. ANIL VIJ 15462 Haryana 66605 #FB7B0D
Bharatiya Janata Party Ambala City ASEEM GOEL 23252 Haryana 60216 #FB7B0D
Bharatiya Janata Party Assandh BAKHSHISH SINGH VIRK 4608 Haryana 30723 #FB7B0D
Bharatiya Janata Party Ateli SANTOSH YADAV 48601 Haryana 64659 #FB7B0D
Bharatiya Janata Party Badhra SUKHVINDER 5006 Haryana 39139 #FB7B0D
Bharatiya Janata Party Badkhal SEEMA TRIKHA 36609 Haryana 70218 #FB7B0D
Bharatiya Janata Party Badli OM PARKASH DHANKAR 9266 Haryana 41549 #FB7B0D
Bharatiya Janata Party Badshahpur NARBIR SINGH 18132 Haryana 86672 #FB7B0D
@BastinRobin
BastinRobin / intern.md
Last active May 27, 2019 08:08
Data Science Internship

Data Science Internship

Candidates are required to finish the give exercise within the give timeslot that is 10 hours. We have provided you a dataset with this exercise. You must have ability to use python with pandas and numpy.

Data Structure

Download

party constituency name margin state votes color
@BastinRobin
BastinRobin / sparx-commands.py
Created May 25, 2019 04:44
Sparx CLI commands
"""
Commands:
sparx new project_name | Generates a new application
sparx add service --name=User | Generates the User model, controller, and schema
sparx add deploy --type=aws | Generates deploymend server facades
sparx add auth --type=social | Generate the basic authentication (social or manual)
"""
@BastinRobin
BastinRobin / Loop.py
Created January 23, 2019 07:21
Types of Python Loops
a = ["vishnu", "akash", "akshita", "nabin"]
# One method
for i in range(len(a)):
print a[i]
# Second method
@BastinRobin
BastinRobin / list_to_json.py
Created January 23, 2019 07:18
List Transformation using Python
a = [
["id", "name", "age", "dept"],
[1, "Vishnu", 30, "PGDM"],
[2, "Suresh", 30, "PGDM"],
[3, "Akash", 30, "MBA"],
[4, "Nabin", 30, "BBA"],
[5, "Akshita", 30, "BCA"],
[6, "Margo", 30, "MCA"],
@BastinRobin
BastinRobin / group.php
Created January 13, 2019 08:02
Grouping In Laravel
<?php
// for hours
UniqueView::get()->groupBy(function($date) {
return Carbon::parse($date->created_at)->format('h');
});
// for minutes
UniqueView::get()->groupBy(function($date) {
return Carbon::parse($date->created_at)->format('i');
});
@BastinRobin
BastinRobin / Vue-boilerplate.js
Last active December 22, 2018 07:15
Vue-boilerplate
<form>
<label>subject name</label>
<input type="text" v-model="subject.name">
<label>subject code</label>
<input type="text" v-model="subject.code">
@BastinRobin
BastinRobin / Challenge1.md
Last active November 30, 2018 17:19
First Challenge which has key for starting Main Project.

Clue is hidden in the Given List Decrypt to go to stage 1:

[104, 116, 116, 112, 115, 58, 47, 47, 103, 105, 115, 116, 46, 103, 105, 116, 104, 117, 98, 46, 99, 111, 109, 47, 66, 97, 115, 116, 105, 110, 82, 111, 98, 105, 110, 47, 99, 53, 102, 53, 102, 52, 53, 51, 54, 99, 99, 55, 48, 50, 48, 54, 51, 56, 56, 56, 98, 56, 57, 102, 55, 55, 99, 56, 101, 51, 101, 100]

hints: chr, char, ascii..etc

If you need to ask for help to solve this puzzle, that means you aren't quite ready for HashResearch Developer Program yet. Learn, study, practice, and try next time!

@BastinRobin
BastinRobin / excel
Created October 3, 2018 07:22
Excel Macro HTTP
Private Sub cmdKirimGET_Click()
Dim strResult As String
Dim objHTTP As Object
Dim URL As String
Set objHTTP = CreateObject("WinHttp.WinHttpRequest.5.1")
URL = "http://www.predicteasy.com/api/sentiment/"
objHTTP.Open "GET", URL, False
objHTTP.setRequestHeader "User-Agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"
objHTTP.setRequestHeader "Content-type", "application/json"
objHTTP.send ("text=I really liked the movie and more interesting it is")