The Mercator projection is available as d3.geo.mercator.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(() => { | |
class LibLoader { | |
constructor() { | |
const el = this.el = document.createElement('pre'); | |
this.b = document.getElementsByTagName('body')[0]; | |
this.otherjQuery = false; | |
el.style.position = 'fixed'; | |
el.style.top = '0'; | |
el.style.padding = '5px 10px'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: (function () { | |
var el = document.createElement('pre'), | |
b = document.getElementsByTagName('body')[0], | |
otherjQuery = false, | |
msg = '', | |
libs = [ | |
function loadjQuery() { | |
if (typeof jQuery != 'undefined') { | |
showMsg('This page already using jQuery v' + jQuery.fn.jquery); | |
} else { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: gpl-3.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static int establish_proxy_connection(int fd, char *host, int port, | |
char *proxy_user, char *proxy_pass) | |
{ | |
char *cp, buffer[1024]; | |
char *authhdr, authbuf[1024]; | |
int len; | |
if (proxy_user && proxy_pass) { | |
stringjoin(buffer, sizeof buffer, | |
proxy_user, ":", proxy_pass, NULL); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Fixes the view each time the view changes | |
require 'sketchup' | |
module NH | |
module ViewFix | |
class MyViewObserver < Sketchup::ViewObserver | |
def onViewChanged( view ) | |
puts "View changed: #{view.inspect}" |