Skip to content

Instantly share code, notes, and snippets.

@chilismaug
chilismaug / wordcounter.bas
Last active February 23, 2023 16:47
vba word frequency app with dictionary and value sort
Option Explicit
Public txtFileName As String
Sub Mainline()
Call openDialog
Call GetWordsToOccurencesDict
End Sub
@chilismaug
chilismaug / fileopen-picker.bas
Created April 10, 2019 13:40
vba pick a file to open
Private Sub openDialog()
Dim fd As Office.FileDialog
Set fd = Application.FileDialog(msoFileDialogFilePicker)
With fd
.AllowMultiSelect = False
' Set the title of the dialog box.
@nicwolff
nicwolff / XML_breaker.py
Last active March 14, 2024 02:11
Python script to break large XML files
import os
import sys
from xml.sax import parse
from xml.sax.saxutils import XMLGenerator
class CycleFile(object):
def __init__(self, filename):
self.basename, self.ext = os.path.splitext(filename)
self.index = 0
@leommoore
leommoore / node_npm_basics.markdown
Last active September 22, 2017 13:32
Node NPM Basics

#Node - NPM Basics

NPM is the Node Package Manager. It is used to install, update and uninstall modules. It will also recursively install dependencies of the installed module. Modules normally reside in the node_modules folder.

###Important Security Note Node comes with the npm package manager. It is strongly encouraged that you should not to do package management with sudo. Packages can run arbitrary scripts which makes them a potential security risk.

It is recommended that you give your user account access to the /usr/local folder instead:

sudo chown -R $USER /usr/local