Skip to content

Instantly share code, notes, and snippets.

View liamegan's full-sized avatar
💭
┬─┬ノ(ಠ_ಠノ)

Liam Egan liamegan

💭
┬─┬ノ(ಠ_ಠノ)
View GitHub Profile
@liamegan
liamegan / SassMeister-input.scss
Created September 12, 2014 17:20
Generated by SassMeister.com.
// ----
// Sass (v3.3.14)
// Compass (v1.0.1)
// ----
/* nav-mixins.scss
=======================================
Author liamegan
email liam@wethecollective.com
Created 2014-07-17 14:34:18
@liamegan
liamegan / SassMeister-input.scss
Last active August 29, 2015 14:06
Generated by SassMeister.com.
// ----
// Sass (v3.3.14)
// Compass (v1.0.1)
// ----
@import "compass";
$scale: 0;
@keyframes test {
@for $i from 80 through 100 {

Keybase proof

I hereby claim:

  • I am liamegan on github.
  • I am harlequin (https://keybase.io/harlequin) on keybase.
  • I have a public key ASBmVukIhIOZTTjrQW4L6SkP_1PKhv4G53DbwbZdqI71SAo

To claim this, I am signing this object:

@liamegan
liamegan / find-all-iframes.js
Created August 17, 2017 15:33
Find all iframes and show their details. Intended for the console.
document.querySelectorAll('iframe').forEach((iframe)=> {
console.log(iframe.id, iframe.className, iframe.src)
});
@liamegan
liamegan / preflight-tools.js
Last active March 20, 2018 21:40
Tools to use to debug and capture issues during website preflight.
// To find all of the controllers on a page and output their values.
document.querySelectorAll('[data-controller]').forEach((node)=> { console.log(node.dataset['controller']) })
/* screen.scss
* In this file you should write your main styles. (or centralize your imports)
* Import this file using the following HTML or equivalent:
* <link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css" /> */
// Make sure the charset is set appropriately
@charset "UTF-8";
@import "compass/reset";
@liamegan
liamegan / Basic facebook publish image code
Created February 6, 2019 01:17
This is the basic code needed to generate an image with canvas and post it to facebook
<!DOCTYPE html>
<html>
<head></head>
<body>
<script>
window.fbAsyncInit = function() {
FB.init({
appId : '2280604068667472',
cookie : true,
xfbml : true,
```
find -D 'exec' LOCATION -name PATTERN -exec sed -i 's/A/B/g' '{}' +
```
So for example
```
find -D 'exec' ./deploy -name '*.html' -exec sed -i 's/https:\/\/www.pokemontcg.com\//http:\/\/pokemontcg.wethe.work\//g' '{}' +
```
I am attesting that this GitHub handle liamegan is linked to the Tezos account tz1LrQZuDuGrtozMZxhwQAZjdqJjXHPxVja8 for tzprofiles
sig:edsigth6Seh8fb6YVWkU3gdLDxuo7ep1AB7xaHbeeBh1dbc7irxss2cBvCwTK2xT2ixW1ndNKRbeESakFizDgKFy9HPcWA4Bim9
@liamegan
liamegan / licenses.js
Created December 4, 2021 16:02
A quick and dirty node shell script to get all of the production licenses from a package.
#!/usr/bin/env node
const { exec } = require("child_process")
async function run() {
let deps
exec("npm list --prod --depth=0 --json", (error, stdout, stderr) => {
if (error) {
console.log(`error: ${error.message}`)
return