Skip to content

Instantly share code, notes, and snippets.

//
// Bookmarklet
//
// Open up the corresponding translation in Japanese or original English article
// in a new window for http://techcrunch.com and http://jp.techcrunch.com
//
javascript:(function(){
_url=location.href;
if(_url.indexOf("http://jp.techcrunch") !== -1) {
_new_url = _url.replace("http://jp.", "https://").replace(/201[0-9\/]+/, "");
//
// Bookmarklet
//
// Open up the stat page for WordPress.
// You need to be logged in to WordPress.com, and have permission.
//
//
javascript:(function(){
function getFirstElementByClass(matchClass) {
package main
// Euler Project #50: http://projecteuler.net/problem=50
import (
"fmt"
"math"
"runtime"
)
// Euler Project
// Problem 45: https://projecteuler.net/problem=45
package main
import (
"fmt"
)
func main() {
//
// Bookmarklet
//
// Open up the corresponding translation in Japanese or original English article
// in a new window for http://techcrunch.com and http://jp.techcrunch.com
//
// New format:
// Use this regular expression test site: https://regex101.com/
//
// http://jp.techcrunch.com/2017/12/19/2017-12-18-bmw-teams-up-with-solid-power-to-develop-solid-state-batteries-for-cars/