Skip to content

Instantly share code, notes, and snippets.

View lswh's full-sized avatar

Helen Mary Labao Barrameda lswh

View GitHub Profile
@prograhammer
prograhammer / windows-powershell.md
Last active December 26, 2019 18:13
Windows PowerShell cheatsheet

Windows PowerShell cheatsheet

View version of PowerShell
$PSVersionTable.PSVersion
Update PowerShell 2 to PowerShell 3.0 (Windows 7)

// In cmd prompt:

@chilts
chilts / alexa.js
Created October 30, 2013 09:27
Getting the Alexa top 1 million sites directly from the server, unzipping it, parsing the csv and getting each line as an array.
var request = require('request');
var unzip = require('unzip');
var csv2 = require('csv2');
request.get('http://s3.amazonaws.com/alexa-static/top-1m.csv.zip')
.pipe(unzip.Parse())
.on('entry', function (entry) {
entry.pipe(csv2()).on('data', console.log);
})
;
@sloria
sloria / bobp-python.md
Last active May 12, 2024 06:54
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens