Easy example on how to put marker on a d3.js map.
You got 2 options:
- using d3.geo.path() which does all the work for you
- using svg circles and translating them via projection(d.geometry.coordinates)
from scipy.optimize import linprog | |
import numpy as np | |
import itertools | |
#Searching for the counterexample for the following conjecture: | |
# in the shortest hamiltonian path, there is at least one | |
# node, connected to its 12 nearest neighbors | |
# https://www.reddit.com/r/math/comments/17rxc28/travelling_salesman_algorithm/ | |
# Use linear programming to find a counterexample |
# To extract the sound from a video and save it as MP3: | |
ffmpeg -i <video.mp4> -vn <sound>.mp3 | |
# To convert frames from a video or GIF into individual numbered images: | |
ffmpeg -i <video.mpg|video.gif> <frame_%d.png> | |
# To combine numbered images (frame_1.jpg, frame_2.jpg, etc) into a video or GIF: | |
ffmpeg -i <frame_%d.jpg> -f image2 <video.mpg|video.gif> | |
# To quickly extract a single frame from a video at time mm:ss and save it as a 128x128 resolution image: |
import request from 'request' | |
const api_endpoint = 'https://api.figma.com/v1' | |
const personal_access_token = 'FIGMA_ACCESS_TOKEN_HERE' // https://www.figma.com/developers/docs#auth-dev-token | |
function downloadSvgFromAWS(url) { | |
return new Promise((resolve, reject) => { | |
request.get( | |
url, | |
{ |
Easy example on how to put marker on a d3.js map.
You got 2 options:
Liquid Fill Gauge v1.1 - 7/14/2015
Changes:
Configurable features include:
import sublime, sublime_plugin | |
BLOCKLEN = 4 | |
class TypeFileOutCommand(sublime_plugin.TextCommand): | |
def nextchar(self): | |
if self.body: | |
totype = [] | |
while 1: | |
try: |