Skip to content

Instantly share code, notes, and snippets.

View aghontpi's full-sized avatar
:octocat:
🏃

BluePie aghontpi

:octocat:
🏃
View GitHub Profile
@aghontpi
aghontpi / SChan
Last active April 18, 2018 11:16
Schan
476F70696E61746820426C75655069652069616D626C756570696540676D61696C2E636F6DDA596F7520617265207468652073776565746573742C206B696E6465737420616E64206C6F7661626C6520706572736F6E204920686176652065766572207365656E2E20596F7520686176652061207370656369616C20706C61636520696E206D792068656172742E2E20262049206C696B6520796F752076657279206D7563682E20
SSB3aXNoIHdlIHNwZW50IG1vcmUgdGltZSB0b2dlSSB3aXNoIHdlIHNwZW50IG1vcmUgdGltZSB0b2dlSSB3aXNoIHdlIHNwZW50IG1vcmUgdGltZSB0b2dldGhlciBhcyBmcmllbmRzLi4=
@aghontpi
aghontpi / extmodule.js
Created April 1, 2018 06:14
learnyounode make it modular
var fs = require('fs');
var path = require('path')
module.exports = function(dir,extension,cbf){
fs.readdir(dir,function(err,files){
if(err){
cbf(err,null);
}
else{
cbf(null,files.filter(function(val){
if(path.extname(val)=='.'+extension){