Skip to content

Instantly share code, notes, and snippets.

View mendezcode's full-sized avatar

Ernesto Méndez mendezcode

View GitHub Profile
@mendezcode
mendezcode / twitter-utils.js
Last active August 29, 2015 14:01
twitter-utils.js
// twitter-util.js (c) 2014 Ernesto Méndez
// @version 1.0.0 / Fri, 30 May 2014 03:40:18 GMT
// MIT license: http://opensource.org/licenses/MIT
// twitterlib.js (c) 2011 Remy Sharp
// @version 1.0.9 / Sun, 19 Feb 2012 23:05:25 GMT
// MIT license: http://rem.mit-license.org
(function () {
@mendezcode
mendezcode / sed.js
Last active October 16, 2020 06:15
sed.js
var fs = require('fs');
var util = require('util');
function main() {
var args = process.argv.slice(2);
if (args.length === 3) {
var regex = eval(args[0]);
@mendezcode
mendezcode / trim-whitespace.hs
Last active August 29, 2015 14:04
Small haskell program to trim whitespace in files
import System.Environment (getArgs)
import System.Directory (doesFileExist)
import Data.Char (isSpace)
main :: IO ()
main = do
args <- getArgs
case args of
[] -> putStrLn msg
[_] -> putStrLn msg