Skip to content

Instantly share code, notes, and snippets.

View clineamb's full-sized avatar
💻
doin' that code thang

Caroline A. clineamb

💻
doin' that code thang
View GitHub Profile
@clineamb
clineamb / README.md
Last active June 30, 2021 15:35
DIM: Make Compare Stats Bars

DIM: Make Visual BARS for Comparing ARMOR

I made this quick JS console script because I'm pretty bad at comparing things without visuals. Maybe eventually I'll make a PR on DIM so this can be a toggle-able option. For now, here's the raw script and some instructions!

FWIW, I'm on beta.destinyitemmanager.com; don't know if the OG has different markup. YMMV if you use on the original.

Keybase proof

I hereby claim:

  • I am clineamb on github.
  • I am clineamb (https://keybase.io/clineamb) on keybase.
  • I have a public key ASCCC4-aNiWlOOVjhNW2kwKRp8SUWp8YRANEcWRRx7LN8wo

To claim this, I am signing this object:

@clineamb
clineamb / app.js
Last active January 30, 2016 16:43
Nunjucks 2.3.0 + Express 4.13.4
var nunjucks = require('nunjucks')
, express = require('express')
, app = express()
, env
;
// view engine setup
app.set('views', path.join(__dirname, 'views'));
env = new nunjucks.Environment(
@clineamb
clineamb / gulp-browserify-task.js
Created February 3, 2015 15:22
browserify 8.1.x - gulp task
//** found on this thread @ this comment: https://github.com/substack/node-browserify/issues/1044#issuecomment-72384131 **/
var through2 = require('through2');
var gulp = require('gulp');
gulp.task('browserify', function() {
gulp.src('./src/index.js')
.pipe(through2.obj(function (file, enc, next){
browserify(file.path)
.transform('stripify')
@clineamb
clineamb / fbog_meta.html
Created January 21, 2015 20:32
Facebook OpenGraph Meta Tags
<meta property="fb:app_id" content="">
<meta property="og:type" content="website">
<!-- see: https://developers.facebook.com/docs/reference/opengraph/ for other types -->
<meta property="og:url" content="http://...">
<meta property="og:title" content="Your Website - Article">
<meta property="og:image" content="http://...png/jpg/etc">
<meta property="og:description" cotnent="Lorem ipsum dolor est...">
<meta property="og:site_name" content="Your Website">
@clineamb
clineamb / app.js
Last active August 29, 2015 14:10
LESS Middleware Setup for ./less source to ./public/css
/*
* LESS-Middleware + Express
* Putting this here for now for reference later...
*
* LESS-Middleware Version 1.0.4
* Express Version Version 4.9.8
* - Caroline, 11/25/2014
*
* Dir structure...
* /sample-project
@clineamb
clineamb / month_select.nunjucks
Last active November 1, 2023 12:32
Nunjucks Date/Time Field Macros
/*
* For use with the nunjucks templating system
* http://mozilla.github.io/nunjucks
*
* I created a bunch of macros for quickly creating date/time fields.
* Import into your nunjucks template:
* "{% import "path/to/datefields.nunjucks" as datefields %}"
* And use...
* {{ datefields.month_select("yo_month", "M", "", "form-control") }}
*
@clineamb
clineamb / app.js
Last active June 6, 2018 01:53
[DEPRECIATED] Nunjucks 1.0.7 + Express 4.9.2
/*
* Nunjucks + Express
* I couldn't find anything that helped me setup the enviornment
* correctly for these in the latest vesion of Express 4 (at the time
* of writing this).
*
* This Gist for those that want to keep using Nunjucks with Express 4.
* This also goes over working with a Nunjucks environment to use custom
* filters, extensions, etc.
*