How to make an application icon for macOS using
iconset
&iconutil
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
<style type="text/css" media="screen"> | |
*{margin:0; padding:0;} | |
h1,h2{margin-bottom:10px; margin-top:30px;} | |
body{padding:30px;} | |
</style> | |
<h1>floats</h1> | |
<h2>simple left/right</h2> | |
<style type="text/css" media="screen"> | |
#simple_floats{overflow:auto; border:5px solid #092994; width:500px;} |
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
$.fn.extend | |
myplugin: (options) -> | |
self = $.fn.myplugin | |
opts = $.extend {}, self.default_options, options | |
$(this).each (i, el) -> | |
self.init el, opts | |
self.log el if opts.log | |
$.extend $.fn.myplugin, | |
default_options: |
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 = -> 'hello' |
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
# Helper function that returns a number with its correct indefinite article | |
# e.g. number_with_indefinite_article(10) #=> "a 10" | |
# e.g. number_with_indefinite_article(80, "$") #=> "an $80" | |
def number_with_indefinite_article(number, prefix=nil) | |
[indefinite_article_for_number(number), " ", prefix, number].compact.join | |
end | |
# Helper function that returns the correct indefinite article for a number | |
# e.g. indefinite_article_for_number(10) #=> "a" | |
# e.g. indefinite_article_for_number(80) #=> "an" |
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
<!doctype html> | |
<!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ --> | |
<html> | |
<head> | |
<title>iOS 8 web app</title> | |
<!-- CONFIGURATION --> |
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
const I = x => x | |
const K = x => y => x | |
const A = f => x => f (x) | |
const T = x => f => f (x) | |
const W = f => x => f (x) (x) | |
const C = f => y => x => f (x) (y) | |
const B = f => g => x => f (g (x)) | |
const S = f => g => x => f (x) (g (x)) | |
const S_ = f => g => x => f (g (x)) (x) | |
const S2 = f => g => h => x => f (g (x)) (h (x)) |
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
const express = require('express') | |
const graphqlHTTP = require('express-graphql') | |
const makeExecutableSchema = require('graphql-tools').makeExecutableSchema | |
const schema = makeExecutableSchema({ | |
typeDefs: ` | |
type Query { | |
user: User | |
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
const getDSLValue = (iterator, last) => { | |
const {value, done} = iterator.next(last); | |
if (done) { | |
return value; | |
} | |
switch (value) { | |
case 'sword': { | |
return getDSLValue(iterator, { | |
weaponType: "Shiny Sword", |
OlderNewer