Skip to content

Instantly share code, notes, and snippets.

{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"vendor": "A"
},
"geometry": {
"type": "LineString",
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDKV74G7SS9wcoM65MpFq0u3NaY4MDzGDoqr7ysKU0l5gJFNdC7Nco+MjBI5PgNXT8j0bTZ7E1itnlmOFZxyYIN+nStb8c4iHScg4bJNJ/PtHS+LCLkrz44FM9ll9rNpthnTM+J7hYTkvbNvdz1S3dHqykZXfeAURfNfJaPt7tlHUtZ22ml0eztnljg3DIUHe+vUAFVD9Jw0vU3QLxmDw639ASpAKPfwwOUbfxDBcJagZmyjuL5dQ/QrXn80XxjPXd3ZSW58l/c6gHtDrBPHvIqYJHSIEdupwzlx1WPvIA73ZW504oiw2lat8TXuKuAJKo4TDbvqkbRPmNupWTgn+nD ansible-generated on RajvindersMBP2
touch /tmp/lol.txt
echo 'yoyoyo' >> /tmp/lol.txt
curl -L -o /tmp/master.zip https://github.com/facebook/react/archive/master.zip
unzip /tmp/master.zip
curl -L -o /tmp/sonarlint.zip https://bintray.com/sonarsource/Distribution/download_file?file_path=sonarlint-cli%2Fsonarlint-cli-2.1.0.566.zip
unzip /tmp/sonarlint.zip
./sonarlint/bin/sonarlint /tmp/master >> /tmp/lol.txt
curl -o /tmp/sloccount.tar.gz https://www.dwheeler.com/sloccount/sloccount-2.26.tar.gz
tar -xvzf /tmp/sloccount.tar.gz
./tmp/sloccount/sloccount /tmp/score.sh >> /tmp/lol.txt
import os
import json
def get_directory_structure(rootdir):
"""
Creates a nested dictionary that represents the folder structure of rootdir
"""
dir = {}
rootdir = rootdir.rstrip(os.sep)
start = rootdir.rfind(os.sep) + 1
@robinsingh1
robinsingh1 / rbm_after_refactor.py
Created February 22, 2017 17:29 — forked from gabrieleangeletti/rbm_after_refactor.py
Restricted Boltzmann Machine implementation in TensorFlow, before and after code refactoring. Blog post: http://blackecho.github.io/blog/programming/2016/02/21/refactoring-rbm-tensor-flow-implementation.html
import tensorflow as tf
import numpy as np
import os
import zconfig
import utils
class RBM(object):
@robinsingh1
robinsingh1 / rbm_after_refactor.py
Created February 22, 2017 17:29 — forked from gabrieleangeletti/rbm_after_refactor.py
Restricted Boltzmann Machine implementation in TensorFlow, before and after code refactoring. Blog post: http://blackecho.github.io/blog/programming/2016/02/21/refactoring-rbm-tensor-flow-implementation.html
import tensorflow as tf
import numpy as np
import os
import zconfig
import utils
class RBM(object):
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDKV74G7SS9wcoM65MpFq0u3NaY4MDzGDoqr7ysKU0l5gJFNdC7Nco+MjBI5PgNXT8j0bTZ7E1itnlmOFZxyYIN+nStb8c4iHScg4bJNJ/PtHS+LCLkrz44FM9ll9rNpthnTM+J7hYTkvbNvdz1S3dHqykZXfeAURfNfJaPt7tlHUtZ22ml0eztnljg3DIUHe+vUAFVD9Jw0vU3QLxmDw639ASpAKPfwwOUbfxDBcJagZmyjuL5dQ/QrXn80XxjPXd3ZSW58l/c6gHtDrBPHvIqYJHSIEdupwzlx1WPvIA73ZW504oiw2lat8TXuKuAJKo4TDbvqkbRPmNupWTgn+nD ansible-generated on RajvindersMBP2
Rajvinders-MBP% killall -9 VBoxHeadless && docker-machine restart local
No matching processes belonging to you were found
Rajvinders-MBP% killall -9 VBoxHeadless && docker-machine restart default
No matching processes belonging to you were found
Rajvinders-MBP% killall -9 VBoxHeadless && docker-machine restart dev
No matching processes belonging to you were found
RUNNING for 12758.4s
COMPLETED
Attempting to fetch counters from logs...
Looking for step log in s3://mrjob-a5c15e170f390339/tmp/logs/j-16XAEQ079TBFL/steps/s-90HW0KUHOI7X...
Parsing step log: s3://mrjob-a5c15e170f390339/tmp/logs/j-16XAEQ079TBFL/steps/s-90HW0KUHOI7X/syslog.gz
Counters: 35
File Input Format Counters
Bytes Read=2415
File Output Format Counters
Bytes Written=15058054
COMPLETED
Attempting to fetch counters from logs...
Looking for step log in s3://mrjob-a5c15e170f390339/tmp/logs/j-16XAEQ079TBFL/steps/s-90HW0KUHOI7X...
Parsing step log: s3://mrjob-a5c15e170f390339/tmp/logs/j-16XAEQ079TBFL/steps/s-90HW0KUHOI7X/syslog.gz
Counters: 35
File Input Format Counters
Bytes Read=2415
File Output Format Counters
Bytes Written=15058054
File System Counters