Moved this to https://github.com/olpeh/sailfish-useful-commands
I hereby claim:
- I am olpeh on github.
- I am olpe (https://keybase.io/olpe) on keybase.
- I have a public key whose fingerprint is 4F55 6A9B A1A0 8DE0 0088 77C6 6B6E DDAD 14ED 2226
To claim this, I am signing this object:
⇐ back to the gist-blog at jrw.fi
Or, 16 cool things you may not have known your stylesheets could do. I'd rather have kept it to a nice round number like 10, but they just kept coming. Sorry.
I've been using SCSS/SASS for most of my styling work since 2009, and I'm a huge fan of Compass (by the great @chriseppstein). It really helped many of us through the darkest cross-browser crap. Even though browsers are increasingly playing nice with CSS, another problem has become very topical: managing the complexity in stylesheets as our in-browser apps get larger and larger. SCSS is an indispensable tool for dealing with this.
This isn't an introduction to the language by a long shot; many things probably won't make sense unless you have some SCSS under your belt already. That said, if you're not yet comfy with the basics, check out the aweso
import xs from "xstream"; | |
import { run } from "@cycle/run"; | |
import { | |
makeDOMDriver, | |
h1, | |
h4, | |
div, | |
select, | |
option, | |
span, |
module Main exposing (..) | |
import Regex | |
import String.Extra exposing (..) | |
import Html exposing (..) | |
import Html.Attributes exposing (..) | |
import Html.Events exposing (..) | |
main = |
(function() { | |
'use strict'; | |
// Make this a kill switch by reading this from config | |
window.ServiceWorkerEnabled = true; | |
if ('serviceWorker' in navigator) { | |
if (window.ServiceWorkerEnabled) { | |
// Delay registration until after the page has loaded, to ensure that our | |
// precaching requests don't degrade the first visit experience. |
{ | |
"name": "<NAME>", | |
"version": "1.0.0", | |
"private": true, | |
"description": "<DESCRIPTION>", | |
"main": "index.tsx", | |
"scripts": { | |
"start": "webpack-dev-server --mode development --hot --progress --colors --port 3000", | |
"build": "webpack -p --progress --colors", | |
"lint": "tslint -c tslint.json 'src/**/*.{ts,tsx}'", |
I have never presented at a conference before. However, I have quite a lot of experience in presenting at local meetups in Helsinki as well as at Tech Weeklies (https://techweeklies.futurice.com). This is why I think I’m ready to step up and present at a conference.
- Koodiklinikka meetup (2018-10-30) – Why you should be creating shitty useless side projects
- HelsinkiJS (2019-02-21) – Lessons learned while creating onkometrorikki.fi
- Cycle.js basics – My experiences trying to learn it (2017-10-13)
- Building LEGOs with React + MobX (a real client project :)) (2018-01-12)
import { Status } from './Status'; | |
export const NotAsked: NotAsked = { | |
status: Status.NotAsked | |
}; | |
export interface NotAsked { | |
status: Status.NotAsked; | |
} |