This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Node.js app to filter some values from a KML file. Very specific to my scenario. | |
Given a KML file from https://www.google.com/maps/d/viewer?mid=1ALf0s6IwCar4juuSamKjhZuOBVoPvSfk | |
named SeattleBikeTag.kml, remove all bike tags contained in excludes array. Create a file called | |
SeattleBikeTag.new.kml. This SeattleBikeTag.new.kml file can be uploaded to a new Google Map. | |
*/ | |
var fs = require('fs'), | |
path = require('path'), | |
xmlReader = require('read-xml') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma comment(lib, "Kernel32") | |
#include <conio.h> | |
#include <Windows.h> | |
#include <WinBase.h> | |
int main() | |
{ | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: vcvars.ps1 wrapper for PowerShell: | |
:: c:\bin\scripts\Invoke-CmdScript.ps1 c:\bin\scripts\vcvars.cmd | |
@echo off | |
if "%1" EQU "/?" echo Usage: vcvars [arch] [version] & goto :EOF | |
if "%1" EQU "-?" echo Usage: vcvars [arch] [version] & goto :EOF | |
if /I "%1" EQU "/help" echo Usage: vcvars [arch] [version] & goto :EOF | |
if /I "%1" EQU "-help" echo Usage: vcvars [arch] [version] & goto :EOF |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# UserVoice doesn't have a search capability that will filter on category. I only care about my category (C++) in a huge | |
# Visual Studio database. This script scrapes all UserVoice suggestions in my category with links into an HTML document. | |
# Improvements welcome from those who actually know Python--this is the first Python script I've ever needed to write. | |
import re | |
import requests | |
import urllib.request | |
from bs4 import BeautifulSoup | |
# Whack any Unicode characters when printing to file. Not correct, but not crashing. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
my $filename = @ARGV[0]; | |
system ("cl /Ox /Zc:inline /EHsc /FAsc /c $filename.cpp"); | |
system ("link /dump /symbols $filename.obj > $filename.dmp"); | |
# Collect the function names that are in the object binary | |
open DMP, "<./$filename.dmp"; | |
# Find the COFF symbol table, in case there's more in the object dump | |
while (<DMP>) | |
{ | |
last if (index($_, "COFF SYMBOL TABLE") != -1); |