Skip to content

Instantly share code, notes, and snippets.

View jsyang's full-sized avatar
🎱
Magic numbers

Jim Yang jsyang

🎱
Magic numbers
View GitHub Profile
@jsyang
jsyang / svg2icns.bash
Created October 30, 2020 01:00 — forked from plroebuck/svg2icns.bash
Create ICNS file from SVG file (with ImageMagick)
#! /bin/bash
###
### svg2icns.bash
### Create ICNS file from SVG
###
### See also:
### <https://stackoverflow.com/questions/12306223/how-to-manually-create-icns-files-using-iconutil#39678276>
### <https://developer.apple.com/library/content/documentation/GraphicsAnimation/Conceptual/HighResolutionOSX/Optimizing/Optimizing.html>
###
22:07:38.609 -> [0000.126] [TegraBoot] (version 00.00.2018.01-l4t-33e7fa82)
22:07:38.885 -> [0000.131] Processing in cold boot mode Bootloader 2
22:07:38.885 -> [0000.136] A02 Bootrom Patch rev = 1023
22:07:38.885 -> [0000.139] Power-up reason: pmc por
22:07:38.885 -> [0000.142] No Battery Present
22:07:38.885 -> [0000.145] pmic max77620 reset reason
22:07:38.885 -> [0000.148] pmic max77620 NVERC : 0x40
22:07:38.885 -> [0000.152] RamCode = 0
22:07:38.885 -> [0000.154] Platform has DDR4 type RAM
22:07:38.885 -> [0000.157] max77620 disabling SD1 Remote Sense

Jon is visiting New York City for the first time. He would like to make use of his stay by touring various places around the city. He wonders if there could be any system which helps him to find a most optimal route which covers as many tourist places as possible from his source to his desired destination point.

Luckily, we have Open Street Maps which contatins "tags" on each road describing it. More information about it can be found here, http://wiki.openstreetmap.org/wiki/Elements#Tag.

Now, you as a Software Developer, need to develop a system to solve his problem. Here are the things that will help you,

Using these, when a source and destination points are given, you need to find a route which has a maximum number of tourist places in it.

@jsyang
jsyang / svg-creator-tool.html
Created July 7, 2016 15:19 — forked from pachacamac/svg-creator-tool.html
simple as fuck svg creator
<!DOCTYPE html>
<html><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>SVG Helper Tool</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<p>click and drag on the canvas ... you're making a polygon ... <button id="reset">reset</button><button id="undo">undo</button></p>
<canvas id="x" width="500" height="500" style="border: 1px solid black;"></canvas>