Skip to content

Instantly share code, notes, and snippets.

Niall O'Brien niallobrien

  • Waterford, Ireland
Block or report user

Report or block niallobrien

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
niallobrien / webpack.mix.js
Last active Feb 26, 2018
Laravel Mix +TailwindCSS + PurgeCSS Asset Pipeline Config for AdonisJS
View webpack.mix.js
var mix = require('laravel-mix');
var glob = require("glob-all");
var PurgecssPlugin = require("purgecss-webpack-plugin");
isProduction = (process.env.NODE_ENV === 'production' || process.argv.includes('-p'));
class TailwindExtractor {
static extract(content) {
return content.match(/[A-z0-9-:\/]+/g);
View App.vue
<div id="app">
<img class="logo" src="./assets/logo.png">
import Hello from './components/Hello'
View Messages.vue
<input type="text" placeholder="Enter message" v-model="newMessage">
<button type="submit" @click="tryAddMessage">Add message</button>
<li v-for="message in messages">
<span>{{ message.text }}</span>
<span @click="tryRemoveMessage(message)">x</span>
niallobrien / App.js
Last active May 14, 2020
Simple Vue & Vuex fetch example using @feathersjs for realtime data.
View App.js
// App.js
<div id="app">
import Messages from './components/Messages'
import store from './vuex/store'
View gist:2540c379e8c339df1c0d
Template.profile.onCreated(function () {
this.subscribe('profile', Router.current().params.username)
'click .follow-me': function (event, template) {
console.log( // null
//'follow', this.user._id);
View gist:6cb8390dfbc2d2ef1ed3
Template.todo.onCreated(function() {
var template = this;
template.limit = new ReactiveVar(5);
Template.todo.rendered = function () {
var template = this;
View gist:81dd87a1efcc973457d9
SwipeStationHub git:(master) ssh -vvv
OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011
debug1: Reading configuration data /Users/niall/.ssh/config
debug1: /Users/niall/.ssh/config line 61: Applying options for *
debug1: Reading configuration data /etc/ssh_config
debug1: /etc/ssh_config line 20: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to [] port 22.
debug1: Connection established.
debug3: Incorrect RSA1 identifier
View gist:36f90c78cf90d50afa03
- var image = article.images.getImage('Teaser Landscape Big')
img(src=image.getUrl('9:4', 860),
niallobrien / SassMeister-input.scss
Created Jan 5, 2015
Generated by
View SassMeister-input.scss
// ----
// Sass (v3.4.9)
// Compass (v1.0.1)
// ----
// vars
$darkBlue: #002c42;
$lightBlue: #1160a5;
// Essentially a function
View gist:bd969710f3c35038ff0a
function equalizeHeight(watch, target) {
var maxHeight = -1;
$(watch).each(function () {
maxHeight = maxHeight > $(this).outerHeight() ? maxHeight : $(this).outerHeight();
$(target).each(function () {
You can’t perform that action at this time.