Skip to content

Instantly share code, notes, and snippets.

View paulmsmith's full-sized avatar

Paul Smith paulmsmith

View GitHub Profile
@paulmsmith
paulmsmith / app.js
Created October 25, 2017 14:56 — forked from dstroot/app.js
Gulp, BrowserSync, Node, and Nodemon all working in harmony. ;)
/**
* World's simplest express server
* - used to serve index.html from /public
*/
var express = require('express');
var serveStatic = require('serve-static');
var app = express();
app.use(serveStatic(__dirname + '/public'));

UK Government Slack usage guide

Slack is a messaging tool for teams. This is a quick guide to help new users get the most out of Slack.

Remember that under the Freedom of Information Act any recorded information, including digital communication, can be requested by a member of the public.

Set up your profile

Your profile helps other users around government know who you are, and helps them find you easily if they're looking for you.

@paulmsmith
paulmsmith / draft.md
Created April 25, 2017 13:16 — forked from mpj/draft.md
Feedback for episode draft: 7 critical traits for a normal programmer

7 critical traits for a normal programmer

EARLY DRAFT FOR NEXT EPISODE, PLEASE PROVIDE FEEDBACK

This week I tweeted and tooted this question:

”What do you think are critical traits in a programmer? NOT to be super 10x or anything - just to feel good and function well professionally.”

Link to full threads here: [https://twitter.com/mpjme/status/855691565460848640]

@paulmsmith
paulmsmith / contrast-grid-url.js
Created February 20, 2017 07:36 — forked from james-nash/contrast-grid-url.js
Generate EightShapes Contrast Grid URL from Brand.ai styles
/*
Generate EightShapes Contrast Grid URL from Brand.ai styles
Usage:
node contrast-grid-url.js [URL]
[URL] should be the URL to your Brand.ai JSON styles data export. Note that
you may need to wrap the URL in quotes.
@paulmsmith
paulmsmith / unrar.sh
Created June 18, 2016 15:06 — forked from zyuzuguldu/unrar.sh
unrar
for <var> in <list>
do
command $<var>;
done
# to unrar all rar files
for f in *.rar;do unrar e "$f";rm "$f";done
for f in *.001;do 7z e "$f";done
function countCSSRules() {
var results = '',
log = '';
if (!document.styleSheets) {
return;
}
for (var i = 0; i < document.styleSheets.length; i++) {
countSheet(document.styleSheets[i]);
}
function countSheet(sheet) {