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
extension UIColor { | |
static var accent: UIColor { | |
UIColor(named: "Accent")! | |
} | |
static var primary: UIColor { | |
UIColor(named: "Primary")! | |
} | |
static var primaryText: UIColor { |
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
// | |
// String+HTML.swift | |
// AttributedString | |
// | |
// Created by Costantino Pistagna on 08/11/2017. | |
// Copyright © 2017 sofapps.it All rights reserved. | |
// | |
import UIKit | |
import Foundation |
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
/* | |
*** Academy Engraved LET *** | |
AcademyEngravedLetPlain | |
--------------------- | |
*** Al Nile *** | |
AlNile | |
AlNile-Bold | |
--------------------- | |
*** American Typewriter *** | |
AmericanTypewriter |
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
// Swift Standard Librray - String | |
// Keith Harrison http://useyourloaf.com | |
// Import Foundation if you want to bridge to NSString | |
import Foundation | |
// ==== | |
// Initializing a String | |
// ==== |
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
// | |
// TopAlignedFlowLayout.swift | |
// | |
// Copyright © 2015 Sean Kasun | |
// | |
// Add TopAlignedFlowLayout.swift to your project, then in your storyboard, | |
// change the Collection View's Layout to "Custom" and set the Class | |
// to "TopAlignedFlowLayout". Boom. | |
import Foundation |
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
<html> | |
<head> | |
<title>A Trello Dashboard</title> | |
<link rel="stylesheet" media="screen" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> | |
</head> | |
<body> | |
<div class="container"> | |
<h1>Trello Dashboard</h1> | |
<form class="form-horizontal" id="boards_form"> |
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
<? | |
///////////////////// | |
// slack2html | |
// by @levelsio | |
///////////////////// | |
// | |
///////////////////// | |
// WHAT DOES THIS DO? | |
///////////////////// | |
// |
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
// Hello, hope you find this code useful | |
package main | |
import ( | |
// this is a deprecated oauth lib from godoc.org | |
// i was going to use the new one (https://godoc.org/golang.org/x/oauth2/google) | |
// but due to a bug i've found and filed at github | |
// i decided to revert to the old one instead until the new one is stable | |
"code.google.com/p/goauth2/oauth/jwt" | |
"encoding/json" |
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 request = require("request"); | |
// The Cities IDs can be found on openweathermap.org (make a search, and look the URI) | |
var cities = [2988507, 5391959]; | |
var slackBotUri = ""; // TODO: Complete | |
request("http://api.openweathermap.org/data/2.5/group?id="+cities.join(',')+"&units=metric ", function(error, response, body) { | |
// Maybe we can handle this differently/better ? | |
if(error != null) | |
return; |
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
// Apple Crayon Palette RGB | |
$cantaloupe: rgb(255, 206, 110); | |
$honeydew: rgb(206, 250, 110); | |
$spindrift: rgb(104, 251, 208); | |
$sky: rgb(106, 207, 255); | |
$lavender: rgb(210, 120, 255); | |
$carnation: rgb(255, 127, 211); | |
$licorice: rgb(0, 0, 0); | |
$snow: rgb(255, 255, 255); |
NewerOlder