Skip to content

Instantly share code, notes, and snippets.

View derhuerst's full-sized avatar

Jannis R derhuerst

View GitHub Profile
@timaschew
timaschew / move-jsubtasks.html
Last active November 26, 2015 09:09
JIRA JavaScript bookmarks
<a href="javascript:(function() {try {var parenttId = jQuery('#key-val').attr('rel');var answer1 = window.prompt('Choose number of subtask to move');if (answer1 == null) return;var sourcePosition = parseInt(answer1) - 1;var selectedSubTask = jQuery('#issuetable tr').eq(sourcePosition).find('td:nth-child(2)').text();var answer2 = window.prompt('To which position you want to move \'' + selectedSubTask + '\'?');if (answer2 == null) return;var targetPosition = parseInt(answer2) - 1;var url = window.location.origin + '/secure/MoveIssueLink.jspa?id=' + parenttId + '&currentSubTaskSequence=' + sourcePosition + '&subTaskSequence=' + targetPosition;jQuery.get(url).done(function() { console.log('moving subtask via bookmark was successfull'); window.location.reload(); }).fail(function() { alert('Operation failed, see browser console for more informations'); });} catch (err) {console.error(err);alert(err);}})();">Move subtasks</a>
<br>
<span>Just drag and drop this link to your bookmark bar</span>
@yoshuawuyts
yoshuawuyts / fast.md
Last active August 27, 2016 16:43 — forked from davidmarkclements/fast.md
Idea - Single Request SPA

dat architecture

  ┌─────────────┐     ┌─────────────┐    ┌─────────────┐     ┌─────────────┐
  │             │     │             │    │             │     │             │
  │   Website   │     │   Desktop   │    │ HTTP Server │     │     CLI     │
  │             │     │             │    │             │     │             │
  └─────────────┘     └─────────────┘    └─────────────┘     └─────────────┘
         ▲                   ▲                  ▲                   ▲       
         └───────────────────┴──────────┬───────┴───────────────────┘       
@popcorn245
popcorn245 / CellProviders.json
Created April 8, 2016 18:11
An array of cell providers with name and domain for text messaging via e-mail.
[
{ 'name': '3 River Wireless', 'domain': 'sms.3rivers.net' },
{ 'name': 'ACS Wireless', 'domain': 'paging.acswireless.com' },
{ 'name': 'Alltel', 'domain': 'message.alltel.com' },
{ 'name': 'AT&T', 'domain': 'txt.att.net' },
{ 'name': 'Blue Sky Frog', 'domain': 'blueskyfrog.com' },
{ 'name': 'Bluegrass Cellular', 'domain': 'sms.bluecell.com' },
{ 'name': 'Boost Mobile', 'domain': 'myboostmobile.com' },
{ 'name': 'BPL Mobile', 'domain': 'bplmobile.com' },
{ 'name': 'Carolina West Wireless', 'domain': 'cwwsms.com' },
@felixfischer
felixfischer / Beduerfnisse.md
Last active January 7, 2017 19:14
Gefühle und Bedürfnisse

Bedürfnisse

  • Achtsamkeit
  • Aktualisierung
  • Akzeptanz
  • Alleinsein
  • Anerkennung
  • Annahme
  • Anregung
  • Ästhetik
const Validate = require('form-element/validate')
const State = require('form-element/state')
const Form = require('form-element')
const html = require('bel')
const fields = [
['credentials', [
['username', 'text', (str) => str.length < 20],
['password', 'password', (str) => str.length > 8 && str.length < 99]
]],
anonymous
anonymous / stations.ndjson
Created July 15, 2017 02:54
Interrail stations
This file has been truncated, but you can view the full file.
{"type":"station","name":"KAUKLAHTI (Finland)","id":1000065,"coordinates":{"longitude":24.600276,"latitude":60.189442},"weight":2905,"products":32}
{"type":"station","name":"PASILA (Finland)","id":1000010,"coordinates":{"longitude":24.933614,"latitude":60.198611},"weight":14015,"products":60}
{"type":"station","name":"MANTSALA (Finland)","id":1000027,"coordinates":{"longitude":25.307502,"latitude":60.647226},"weight":1049,"products":48}
{"type":"station","name":"KAUNIAINEN (Finland)","id":1000067,"coordinates":{"longitude":24.730835,"latitude":60.211942},"weight":2905,"products":32}
{"type":"station","name":"KORSO (Finland)","id":1000019,"coordinates":{"longitude":25.078052,"latitude":60.350555},"weight":3058,"products":48}
{"type":"station","name":"HAARAJOKI (Finland)","id":1000013,"coordinates":{"longitude":25.133893,"latitude":60.496387},"weight":1049,"products":48}
{"type":"station","name":"OULUNKYLA (Finland)","id":1000015,"coordinates":{"longitude":24.967782,"latitude":60.228886},"weight":6394,"products
@yocontra
yocontra / EventEmitter.coffee
Created May 20, 2012 19:57
Tiny browser/node EventEmitter implementation in coffeescript
class EventEmitter
constructor: ->
@events = {}
emit: (event, args...) ->
return false unless @events[event]
listener args... for listener in @events[event]
return true
addListener: (event, listener) ->
@claudiopro
claudiopro / .gitignore
Last active November 10, 2017 20:24 — forked from rauchg/README.md
require-from-dat
/node_modules/
module.js
@ttscoff
ttscoff / spl.rb
Created May 2, 2014 14:46
A Sentaku-based wrapper for mdfind
#!/usr/bin/ruby
require 'shellwords'
query = ARGV.length > 0 ? ARGV.join(" ") : "date:today"
files = %x{mdfind '#{ARGV.join(" ")}'}.split("\n")[0..100]
filehash = {}
files.each {|file|
base = File.basename(file)