Skip to content

Instantly share code, notes, and snippets.

@zerocity
zerocity / jiraWideScreen.js
Created February 25, 2021 11:28
Remove white space in issues
// ==UserScript==
// @name Jira Wide screen editor
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Remove white space in selected issues
// @author You
// @match https://*.atlassian.net/*
// @grant none
// ==/UserScript==
[
{ "label": "Afghanistan", "value": "afghanistan" },
{ "label": "Albania", "value": "albania" },
{ "label": "Algeria", "value": "algeria" },
{ "label": "Andorra", "value": "andorra" },
{ "label": "Angola", "value": "angola" },
{ "label": "Antigua & Deps", "value": "antigua-deps" },
{ "label": "Argentina", "value": "argentina" },
{ "label": "Armenia", "value": "armenia" },
{ "label": "Australia", "value": "australia" },
colors: {
grey: [
"rgb(51, 51, 51)",
"rgb(126, 126, 126)",
"rgb(187, 187, 187)",
"rgb(225, 225, 225)",
"rgb(246, 246, 246)",
"rgb(250, 250, 250)",
"rgb(255, 255, 255)",
],
@zerocity
zerocity / FoobarFuture2
Last active April 23, 2019 18:43
asdasd
https://gist.github.com/zerocity/cf702dedcd106f61bf38717d3368e23d/raw/beeb7190bbcdd0a11a10adb941ce8514534174cb/FoobarFuture1
https://gist.github.com/zerocity/cf702dedcd106f61bf38717d3368e23d/raw/beeb7190bbcdd0a11a10adb941ce8514534174cb/FoobarFuture1
https://gist.github.com/zerocity/cf702dedcd106f61bf38717d3368e23d/raw/beeb7190bbcdd0a11a10adb941ce8514534174cb/FoobarFuture1
https://gist.github.com/zerocity/cf702dedcd106f61bf38717d3368e23d/raw/beeb7190bbcdd0a11a10adb941ce8514534174cb/FoobarFuture1
@zerocity
zerocity / FoobarFuture1
Last active April 23, 2019 18:39
lalal
https://gist.github.com/zerocity/b17fc31ee1aa8ccc6dedc8f81c9438de
@zerocity
zerocity / AppRouter.js
Created September 25, 2017 09:51
AppRouter
import React, { Component } from "react";
import generated from "./generated";
import { StackNavigator } from "react-navigation";
import { generateNavStack, generateHeader } from './utils';
import { Toc } from './components';
const router = {
Application: {
screen: (props) => (<Toc {...props} generated={generated} />),
navigationOptions : generateHeader("Table of Content")
@zerocity
zerocity / vscode
Created August 7, 2017 06:22
my vscode
a
@zerocity
zerocity / post-merge
Created May 2, 2017 13:21 — forked from sindresorhus/post-merge
git hook to run a command after `git pull` if a specified file was changed.In this example it's used to run `npm install` if package.json changed and `bower install` if `bower.json` changed.Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`.
#!/usr/bin/env bash
# MIT © Sindre Sorhus - sindresorhus.com
# git hook to run a command after `git pull` if a specified file was changed
# Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`.
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)"
check_run() {
echo "$changed_files" | grep --quiet "$1" && eval "$2"
import Phaser from 'phaser';
class Spinner extends Phaser.Group {
constructor(game, x,y){
super(game,undefined,'TESTER');
let scale = 0.3;
let buttonHeight = 64 * scale;
let padding = 10;
this.value = 0
this.btOne = new Phaser.Button(game,x,y, 'plus',this.plus, this);
<nav id="startpage-search"><form method="GET" action="http://alpha.wallhaven.cc/search" accept-charset="UTF-8" id="search"><fieldset class="oneline"><div><input type="search" id="search-text" name="q" placeholder="Search..." autofocus="autofocus"></div><button class="icon-button"><i class="fa fa-search"></i></button></fieldset></form></nav>