This file contains 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
// Run any SwiftUI view as a Mac app. | |
import Cocoa | |
import SwiftUI | |
NSApplication.shared.run { | |
VStack { | |
Text("Hello, World") | |
.padding() | |
.background(Capsule().fill(Color.blue)) |
This file contains 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
//************************************************ | |
// | |
// Catmull-Rom Spline to Bezier Spline Converter | |
// | |
// | |
// This is an experimental extension of the SVG 'path' element syntax to | |
// allow Catmull-Rom splines, which differs from Bézier curves in that all | |
// defined points on a Catmull-Rom spline are on the path itself. | |
// | |
// This is intended to serve as a proof-of-concept toward inclusion of a |
This file contains 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
/* | |
Grep.js | |
Author : Nic da Costa ( @nic_daCosta ) | |
Created : 2012/11/14 | |
Version : 0.2 | |
(c) Nic da Costa | |
License : MIT, GPL licenses | |
Overview: | |
Basic function that searches / filters any object or function and returns matched properties. |
This file contains 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
var casper = require("casper").create(); | |
var url = "https://github.com/search?langOverride=VimL&language=&q=vimrc&repo=&type=Repositories&start_value=" + casper.cli.get(0); | |
var repoLinks = []; | |
var fileLinks = []; | |
function getRepoLinks() { | |
var links = []; | |
$("div.results .result h2 a").each(function(i,el){ | |
links.push(el.href); | |
}); |
This file contains 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
""" | |
doodler.py - (c) 2012 Marcos Ojeda <marcos@khanacademy.org> | |
--"Quis leget haec?" | |
requires | |
graphicsmagick - brew install graphicsmagick | |
ghostscript - brew install ghostscript | |
""" |