Skip to content

Instantly share code, notes, and snippets.

View rse43's full-sized avatar

Shuo Ran rse43

  • Sydney, Australia
View GitHub Profile

Keybase proof

I hereby claim:

  • I am rse43 on github.
  • I am rse43 (https://keybase.io/rse43) on keybase.
  • I have a public key ASBrRMMmLTPJIqGk1MRXvSdNpSJx9qcUQZAe3Z_OQ5QnCwo

To claim this, I am signing this object:

todo-> {{
var ticketURL = document.URL
var ticketId = ticketURL.match('[A-Z]+-[0-9]+$')
var originalTitle = document.title
var ticketTitle = originalTitle.replace(/^\[[A-Z]+-[0-9]+\] /, '').replace(/ - SMBC JIRA$/, '')
var todoistStr = '[' + ticketId + ']('+ ticketURL + ') - ' + ticketTitle + ' #NASDAQ'
console.log(todoistStr)
window.prompt("Copy to clipboard: Ctrl+C, Enter", todoistStr);
}}
" Code blocks (see below for more info)
@rse43
rse43 / cVimrc
Last active September 12, 2019 01:06
set autoupdategist
set noautofocus
set nocncpcompletion
set smoothscroll
set hud
set noregex
set noinsertmappings
set typelinkhints
set defaultnewtabpage
let scrollduration = 10
@rse43
rse43 / public-ip.py
Created March 11, 2013 13:25
public-ip
import requests
import clipboard
clipboard.set(requests.get('http://ifconfig.me/ip').text)
@rse43
rse43 / gist:4705621
Last active September 28, 2022 22:49
Script to bulkly submit Ingress passcodes.
// ==UserScript==
// @name Ingress Passcodes Helper
// @namespace http://use.i.E.your.homepage/
// @version 0.1
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js
// @description Help you submit passcodes in bulk
// @match http://www.ingress.com/intel*
// @copyright 2012+, You
// ==/UserScript==
unsafeWindow.$('head').append("<script>function submitCodes() {var codes = document.getElementById(\"codes_text\").value.split('\\n');codes.forEach(function(entry) {console.log(entry);Z.c().qa();var c = Z.c();c = t(c.eb.Nc, c.eb);S(T.c().r, \"dashboard.redeemReward\", {passcode:entry}, c);cf(m);});}</script>");