Skip to content

Instantly share code, notes, and snippets.

View two7sclash-zz's full-sized avatar
🕶️

James Fishwick two7sclash-zz

🕶️
View GitHub Profile
@two7sclash-zz
two7sclash-zz / 0_reuse_code.js
Created January 11, 2017 15:22
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@two7sclash-zz
two7sclash-zz / styles.less
Created January 4, 2017 16:25 — forked from ryanpcmcquen/styles.less
Ligature fonts for atom
atom-text-editor {
font-family: 'Fira Code';
font-style: normal;
text-rendering: optimizeLegibility;
}
atom-text-editor::shadow {
.string.quoted,
.string.regexp {
-webkit-font-feature-settings: "liga" off, "calt" off;
@two7sclash-zz
two7sclash-zz / replacer.py
Created October 19, 2016 01:07 — forked from yv84/replacer.py
Script to recursively replace string in filename and contents
"""
Usage: python script.py search_string replace_string dir
Eg. python batchreplace.py galleries productions /Sites/cjc/application/modules/productions/
And it will search recursively in dir
and replace search_string in contents
and in filenames.
Case-sensitive
"""
from sys import argv
@two7sclash-zz
two7sclash-zz / ValidateTwoDatesWorkflow.groovy
Created September 19, 2016 15:50 — forked from jusuchin85/ValidateTwoDatesWorkflow.groovy
A Groovy script to compare the Due Date field against the Resolved Date field. If the Resolved Date is after the Due Date, then the Target Met field would be set to "No". Otherwise, it would be set to "Yes"
/**
 * @author jalex
 * @version 1.0
 *
 * A Groovy script to compare the Due Date field against the Resolved Date field. If the Resolved Date is after the
 * Due Date, then the Target Met field would be set to "No". Otherwise, it would be set to "Yes"
 *
 */
import com.atlassian.jira.ComponentManager
@two7sclash-zz
two7sclash-zz / Contract Killer 3.md
Created September 19, 2016 15:10 — forked from MikeNGarrett/Contract Killer 3.md
The latest version of my ‘killer contract’ for web designers and developers

Contract Killer

The popular open-source contract for web professionals by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: March 15th 2016
  • Original post

The MIT License (MIT)
Copyright (c) 2014 Devin Mancuso <devin@radelaide.net>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@two7sclash-zz
two7sclash-zz / JIRA changeToSubTaskAndLink.groovy
Created May 27, 2016 14:29 — forked from cben0ist/JIRA changeToSubTaskAndLink.groovy
Jira script runner : change task to SubTask and link to parent
@two7sclash-zz
two7sclash-zz / cengage_convert.rb
Last active September 26, 2016 15:38 — forked from rharriso/cengage_convert.rb
methods for converting filenames
require 'fileutils'
require 'securerandom'
#
# all files must match cengage file names
#
def cengagify_files(folder_path)
Dir.glob("#{folder_path}/**/*").each do |f|
# skip directories and simple names
next if File.directory?(f)
var soundex = function (s) {
var a = s.toLowerCase().split(''),
f = a.shift(),
r = '',
codes = {
a: '', e: '', i: '', o: '', u: '',
b: 1, f: 1, p: 1, v: 1,
c: 2, g: 2, j: 2, k: 2, q: 2, s: 2, x: 2, z: 2,
d: 3, t: 3,
l: 4,