Blog 2020/7/26
<- previous | index | next ->
Blog 2020/7/26
<- previous | index | next ->
#!/usr/bin/env bash | |
# Checks for the presence of the dart2js issue https://github.com/dart-lang/sdk/issues/28727 | |
# in a given compiled JS file, and sets the exit code if it is found. | |
# | |
# For use on `pub build` output, or other output where the dart2js `minify` is enabled. | |
# | |
# Usage: | |
# ./dart-lang_issue_28727_checker.sh <pub_build_output.dart.js> |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
Answer by Jim Dennis on Stack Overflow question: what is your most productive shortcut?
You mention cutting with yy
and complain that you almost never want to cut
whole lines. In fact programmers, editing source code, very often want to work
on whole lines, ranges of lines and blocks of code. However, yy
is only one
of many way to yank text into the anonymous copy buffer (or "register" as it's
called in vi).
; Comments start with semicolons. | |
; Clojure is written in "forms", which are just | |
; lists of things inside parentheses, separated by whitespace. | |
; | |
; The clojure reader assumes that the first thing is a | |
; function or macro to call, and the rest are arguments. | |
; | |
; Here's a function that sets the current namespace: | |
(ns test) |
/** | |
* PE to use SVG as CSS background image with fallback for IE8/7/6 | |
* | |
* Using SVG as CSS background image to display | |
* resolution-independent logos or icons is pretty | |
* awesome but does completely fail on IE8/7/6 | |
* | |
* The trick: | |
* All three IE versions don't support rgba color values. | |
* By defining a rgba background color together with the |