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
(add-to-list 'default-frame-alist '(fullscreen . maximized)) | |
(setq mac-command-modifier 'control) |
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
(deftask cider "CIDER profile" | |
[] | |
(require 'boot.repl) | |
(swap! @(resolve 'boot.repl/*default-dependencies*) | |
concat '[[org.clojure/tools.nrepl "0.2.13"] | |
[cider/cider-nrepl "0.15.0"] | |
[refactor-nrepl "2.3.1"]]) | |
(swap! @(resolve 'boot.repl/*default-middleware*) | |
concat '[cider.nrepl/cider-middleware | |
refactor-nrepl.middleware/wrap-refactor]) |
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
{:repositories [["java.net" "http://download.java.net/maven/2"] | |
["sonatype" {:url "http://oss.sonatype.org/content/repositories/releases" | |
;; If a repository contains releases only setting | |
;; :snapshots to false will speed up dependencies. | |
:snapshots false | |
;; Disable signing releases deployed to this repo. | |
;; (Not recommended.) | |
:sign-releases false | |
;; You can also set the policies for how to handle | |
;; :checksum failures to :fail, :warn, or :ignore. |
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
(ns org.bitkitchen.explore.async.batch | |
(:require [clojure.core.async | |
:as a | |
:refer [>! <! >!! <!! go chan close! pipeline]])) | |
;;;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: | |
;;; TEST TARGETS | |
;;; Core.Async in Use - Timothy Baldridge / Clojure West 2017 | |
;;;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: |
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
package main | |
import ( | |
"fmt" | |
"sync" | |
"time" | |
) | |
type Fetcher interface { | |
// Fetch returns the body of URL and |
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
git_branch_ps() { | |
git_branch=$(git branch 2>/dev/null | grep "^*" | colrm 1 2) | |
if [ -n "$git_branch" ]; | |
then | |
echo " ($git_branch)" | |
fi | |
} | |
export PS1='\u@\w$(git_branch_ps) $ ' |
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 contextBoundingBox = (ctx: CanvasRenderingContext2D, alphaThreshold: number) => { | |
const effectiveAlphaThrh = alphaThreshold || 15; | |
const w = ctx.canvas.width; | |
const h = ctx.canvas.height; | |
const data = ctx.getImageData(0, 0, w, h).data; | |
let x: number; | |
let y: number; | |
let minX: number; | |
let minY: number; | |
let maxX: number; |
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
React seems to monitor the `value` attributes that is being set to <input> elements and if it finds that the `value` is set to `undefined` emits the above warning. There are cases where figuring out what is happening may be tricky. But knowing that you have to look for `undefined` being set to `values` will help you a lot figure out how to have this warning go away. (An example of such a non-trivial situation is that you display the properties of an object in separate input elements. When the user starts setting the first property of the object, the other properties are still undefined, but a simple state management logic -- and you'll want to keep the state management logic simple, I bet -- will try to set all the input tags representing the properties of the object.) | |
The closest to give a clue I've found by Googling was this issue. Unfortunately, it uses the word "empty" instead of the `undefined` keyword. |
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
@ECHO off | |
REM Licensed to the Apache Software Foundation (ASF) under one | |
REM or more contributor license agreements. See the NOTICE file | |
REM distributed with this work for additional information | |
REM regarding copyright ownership. The ASF licenses this file | |
REM to you under the Apache License, Version 2.0 (the | |
REM "License"); you may not use this file except in compliance | |
REM with the License. You may obtain a copy of the License at | |
REM | |
REM http://www.apache.org/licenses/LICENSE-2.0 |
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
package main | |
import ( | |
"errors" | |
"fmt" | |
) | |
func foo() (string, error) { | |
doErr := false | |
beOpportunist := false |
OlderNewer