Skip to content

Instantly share code, notes, and snippets.

.ghx-swimlane-header.ghx-done,
.ghx-issue-compact.ghx-done,
.ghx-swimlane-header.ghx-done .ghx-items-container,
.ghx-issue-compact.ghx-done .ghx-items-container {
background: #d5ffe3 !important;
}
.ghx-swimlane-header.ghx-done + .ghx-columns .ghx-column {
background: #cdd5cf !important;
}
@Scribblerockerz
Scribblerockerz / pointer-movement.ts
Created March 20, 2022 19:57
Vue3 Pointer Movement Directive
import { ObjectDirective } from 'vue';
const noop = () => {
// noop
};
type Position = {
x: number;
y: number;
};
@Scribblerockerz
Scribblerockerz / scroll-sync-usage.vue
Last active March 20, 2022 14:12
Scroll Sync Directive for vue3
<template>
<!-- Sync only vertically -->
<div class="scrollable-area" v-scroll-sync:timeline.y />
<!-- Sync only horizontally -->
<div class="scrollable-area" v-scroll-sync:timeline.x />
<!-- Sync in all directions -->
<div class="scrollable-area" v-scroll-sync:timeline />
<!-- Declare 3 different channels to sync to -->
<div class="scrollable-area" v-scroll-sync:sidebar />
@Scribblerockerz
Scribblerockerz / brew-instructions.sh
Created October 5, 2021 13:56 — forked from petemcw/brew-instructions.sh
Setup dnsmasq on Mac OS X
# Install `dnsmasq` and configure for *.dev domains
$ brew install dnsmasq
$ vim /usr/local/etc/dnsmasq.conf
# Reload configuration and clear cache
$ sudo launchctl unload /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
$ sudo launchctl load /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
$ dscacheutil -flushcache

Keybase proof

I hereby claim:

  • I am scribblerockerz on github.
  • I am scribblerockerz (https://keybase.io/scribblerockerz) on keybase.
  • I have a public key ASBG8wxAJKB-OdaflmBkehiyG2rIROMaimBh3q87P3OVRAo

To claim this, I am signing this object:

@Scribblerockerz
Scribblerockerz / ajax.js
Last active December 24, 2015 22:49
Minimal ajax function. No fallback for older browsers (lt IE7).
;(function(exports){
exports.ajax = function(opt){
var req = new XMLHttpRequest(),
res,
opt = opt || {};
//defaults
opt.success = opt.success || function(){};
opt.params = opt.params || {};
opt.type = opt.type || 'GET';
@Scribblerockerz
Scribblerockerz / xhr.js
Created September 13, 2013 08:09 — forked from mythz/xhr.js
//Adds $.xhr and jQuery-like $.ajax methods to the prescribed namespace.
//Inspired from David Flanagans excellent cross-platform utils http://www.davidflanagan.com/javascript5/display.php?n=20-1&f=20/01.js
//Includes underscore.js _.each and _.extend methods
//modified to behave like jQuery's $.ajax(), not complete.
(function($) {
var win=window, xhrs = [
function () { return new XMLHttpRequest(); },
function () { return new ActiveXObject("Microsoft.XMLHTTP"); },
function () { return new ActiveXObject("MSXML2.XMLHTTP.3.0"); },
function () { return new ActiveXObject("MSXML2.XMLHTTP"); }
@Scribblerockerz
Scribblerockerz / mailcatcher-install.md
Created December 18, 2015 10:11 — forked from pitpit/mailcatcher-install.md
Install Mailcatcher on OSX
@Scribblerockerz
Scribblerockerz / Gulpfile.js
Last active September 30, 2015 20:49
Workflow with Sass compilation, JavaScript concatenation and image optimisation — so many *ation's
/**
* Terminal shortcut:
* `npm install --save-dev gulp gulp-imagemin gulp-sass gulp-sourcemaps gulp-concat gulp-uglify gulp-rename`
*/
var gulp = require('gulp'),
sass = require('gulp-sass'),
imagemin = require('gulp-imagemin'),
sourcemaps = require('gulp-sourcemaps'),
concat = require('gulp-concat'),
@Scribblerockerz
Scribblerockerz / .zshrc
Created September 30, 2015 09:11
An alias to execute all phpStorm's scratch files
alias scratch='for f in ~/Library/Preferences/WebIde90/scratches/*; do echo "\e[93m--------- EXECUTE: `basename $f` ---------\n\n\e[37m"; php -d display_errors $f; echo "\n\n"; done;'