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
[buildPlans.Iosevkaex] | |
family = "LeosevkaEx" | |
desc = "Custom Iosevka with only Extended width" | |
exportGlyphNames = true | |
noCvSs = false | |
buildTextureFeature = true | |
[buildPlans.Iosevkaex.weights.Regular] | |
shape = 400 | |
menu = 400 |
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
pub fn customers(pool: &'static db::ConnectionPool) -> impl warp::Filter { | |
// Clone pool in filter chain so child threads can access it safely. | |
let database = warp::any().map(move || pool.clone()); | |
let customers = warp::path("customers"); | |
let customers_index = customers.and(warp::path::end()); | |
let customer_by_id = customers | |
.and(warp::path::param::<i64>()) | |
.and(warp::path::end()); |
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
mod api; | |
mod db; | |
mod models; | |
use pretty_env_logger; | |
use std; | |
use std::net::SocketAddr; | |
use warp::{self, Filter}; | |
fn main() { |
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
### Keybase proof | |
I hereby claim: | |
* I am leonbreedt on github. | |
* I am leonbreedt (https://keybase.io/leonbreedt) on keybase. | |
* I have a public key whose fingerprint is 8EDF 16F2 41C9 8880 5D60 19FD C7FC 3270 F57F A785 | |
To claim this, I am signing this object: |
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
import Cocoa | |
import JavaScriptCore | |
/// Something that can be represented as a `JSValue`. | |
protocol JSValueRepresentable { | |
/// The `JSValue` for this thing. | |
var jsValue: JSValue { get } | |
} |
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
import Cocoa | |
/// Enumerates the types of fonts supported for attributed strings. | |
enum TextFontType { | |
case System | |
case Named(String) | |
} |
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
// | |
// FontPreview | |
// Copyright © 2018 Leon Breedt | |
// | |
// Licensed under the Apache License, Version 2.0 (the "License"); | |
// you may not use this file except in compliance with the License. | |
// You may obtain a copy of the License at | |
// | |
// http://www.apache.org/licenses/LICENSE-2.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
node generate regular build/.pass0-iosevka-regular.ttf --dumpmap build/iosevka-regular.charmap --dumpfeature build/.pass0-iosevka-regular.ab.fea | |
Building /.notdef for Iosevka Regular | |
Building /space for Iosevka Regular | |
Building /dotAbove for Iosevka Regular | |
Building /dieresisAbove for Iosevka Regular | |
Building /ringAbove for Iosevka Regular | |
Building /graveAbove for Iosevka Regular | |
Building /acuteAbove for Iosevka Regular | |
Building /circumflexAbove for Iosevka Regular | |
Building /caronAbove for Iosevka Regular |
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
{ | |
var r0_fs, r0_path, r0_Glyph, r0_Stroke, r0_tp, r0_inverse, r0_libspiro, r0_SpiroExpansionContext, r0_toml, r0_mix, r0_linreg, r0_bilinear, r0_fallback, r0_emptyFontStr, r0_buildFont, _r0_t0, _r0_t1, _r0_t2, _r0_t3, _r0_t4; | |
r0_fs = require('fs'); | |
r0_path = require('path'); | |
r0_Glyph = require('./support/glyph').Glyph; | |
r0_Stroke = require('./support/stroke').Stroke; | |
r0_tp = require('./support/transform').transformPoint; | |
r0_inverse = require('./support/transform').inverse; | |
r0_libspiro = require('libspiro-js'); | |
r0_SpiroExpansionContext = require('./support/spiroexpand').SpiroExpansionContext; |
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
#!/usr/bin/xcrun swift | |
// | |
// Copyright © 2016 Leon Breedt | |
// | |
// Licensed under the Apache License, Version 2.0 (the "License"); | |
// you may not use this file except in compliance with the License. | |
// You may obtain a copy of the License at | |
// | |
// http://www.apache.org/licenses/LICENSE-2.0 | |
// |
NewerOlder