Skip to content

Instantly share code, notes, and snippets.

View akshaybabloo's full-sized avatar
:atom:
Hello!

Akshay Raj Gollahalli akshaybabloo

:atom:
Hello!
View GitHub Profile
C:\Users\aksha>npm uninstall -g -dd @angular/cli
npm info it worked if it ends with ok
npm verb cli [ 'C:\\Program Files\\nodejs\\node.exe',
npm verb cli 'C:\\Users\\aksha\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
npm verb cli 'uninstall',
npm verb cli '-g',
npm verb cli '-dd',
npm verb cli '@angular/cli' ]
npm info using npm@5.6.0
npm info using node@v8.9.2
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli   'C:\\Users\\aksha\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'install',
1 verbose cli   '--save',
1 verbose cli   'bootstrap' ]
2 info using npm@5.4.1
3 info using node@v8.4.0
4 verbose npm-session c46d0853e073c04d
@akshaybabloo
akshaybabloo / kedri_form_submission_parser.py
Last active August 10, 2017 23:46
NeuCube form submission XML parser
import xmltodict
import pandas as pd
import dateutil.parser
def format_date(dt):
"""
Formats DateTTime to D-M-Y.
Parameters

Keybase proof

I hereby claim:

  • I am akshaybabloo on github.
  • I am akshaybabloo (https://keybase.io/akshaybabloo) on keybase.
  • I have a public key whose fingerprint is 401E BABE F7D5 5278 74CF 94A6 A572 F782 BCFB BE35

To claim this, I am signing this object:

{
"publication": {
"abstract": [
"Gollahalli, A. R., &amp; Kasabov, N. (2015). EEGRotor: A virtual Quad-Copter based on Brain Computer Interface. presented at the meeting of the 13<sup>th</sup> International Conference on Neuro-Computing and Evolving Intelligence 2015 (NCEI ‘15) Auckland. Retrieved from http://www.aut.ac.nz/__data/assets/pdf_file/0018/525051/Booklet-NCEI15.pdf"
],
"poster": [
"Gollahalli, A. R., &amp; Kasabov, N. (2015). EEGRotor: A virtual Quad-Copter based on Brain Computer Interface. presented at the meeting of the 13<sup>th</sup> International Conference on Neuro-Computing and Evolving Intelligence 2015 (NCEI ‘15) Auckland."
],
"thesis": [
"Gollahalli, A. R. (2015). Brain-computer interfaces for virtual Quadcopters based on a spiking-neural network architecture - NeuCube. AUT University, Auckland. Retrieved from http://hdl.handle.net/10292/9249"
@akshaybabloo
akshaybabloo / list_github_repo.py
Created December 29, 2016 15:10
Script to list all repos for a github user
"""
For Python 3.
Insted of "akshaybabloo" in DEFAULT_BASE_URL, write in your user name.
"""
from urllib.request import urlopen
import json
DEFAULT_BASE_URL = "https://api.github.com/users/akshaybabloo/repos"
@akshaybabloo
akshaybabloo / get_dns_records.py
Last active April 23, 2024 17:54
Printing all DNS records using DNSPython in Python 3
#!/usr/bin/env python
# -*- coding utf-8 -*-
#
# Copyright 2016 Akshay Raj Gollahalli
import dns.resolver
def get_records(domain):
"""
<?php
$json = '{"experience": {
"1": [
{"title": "Jr. Systems Engineer"},
{"company": "Cheminnova Group of Companies."},
{"where": "Hyderabad, India"},
{"from": "May, 2012"},
{"to": "February, 2013"},
{"current": false}
sample_rate = 500;
number_of_channels = 32;
file_number = 1;
looper = 1;
eeg = transpose(EEG.data);
while looper == 1
var = eeg(1:sample_rate,1:number_of_channels);
k = sprintf('sam%d',file_number);
% assignin('base',k,var); % if you wan to save it to your work space.
@akshaybabloo
akshaybabloo / file_tree_view.py
Last active September 20, 2016 04:01
List files & folders in a tree structure and write to text file.
import os
from __future__ import print_function
def list_files(startpath):
fg = open('structure.txt', 'w+')
for root, dirs, files in os.walk(startpath):
level = root.replace(startpath, '').count(os.sep)
indent = ' ' * 4 * (level)
a = ('{}|-{}/'.format(indent, os.path.basename(root)))
print(a)
fg.write(a)