Author: Chris Lattner
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
from dataclasses import dataclass, field | |
from typing import Any, Callable, Dict, Generic, Optional, Tuple, TypeVar, Union | |
ReturnType = TypeVar("ReturnType") | |
@dataclass | |
class TailCall: | |
args: Tuple[Any, ...] = field(default_factory=tuple) |
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
/** | |
* Using Operator Mono in Atom | |
* | |
* 1. Open up Atom Preferences. | |
* 2. Click the “Open Config Folder” button. | |
* 3. In the new window’s tree view on the left you should see a file called “styles.less”. Open that up. | |
* 4. Copy and paste the CSS below into that file. As long as you have Operator Mono SSm installed you should be golden! | |
* 5. Tweak away. | |
* | |
* Theme from the screenshot (http://cdn.typography.com/assets/images/blog/operator_ide2.png): |
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
env: | |
global: | |
# implement your own logic in get_env_for_git_reference.sh | |
- TARGET_ENV="`test $TRAVIS_TAG && ./get_target_env_for_git_reference.sh $TRAVIS_TAG`" | |
# ENV integration | |
- AWS_INTEGRATION_APPLICATION=xxxx | |
- AWS_INTEGRATION_DEPLOYMENT_GROUP=xxxx | |
- AWS_INTEGRATION_REGION=xxxx | |
#AWS_INTEGRATION_ACCESS_KEY |
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
$assemblyFile = "$env:APPVEYOR_BUILD_FOLDER\src\GlobalAssemblyInfo.cs" | |
$regex = new-object System.Text.RegularExpressions.Regex ('(AssemblyInformationalVersion(Attribute)?\s*\(\s*\")(.*)(\"\s*\))', | |
[System.Text.RegularExpressions.RegexOptions]::MultiLine) | |
$content = [IO.File]::ReadAllText($assemblyFile) | |
$version = $null | |
$match = $regex.Match($content) | |
if($match.Success) { |
I say "animated gif" but in reality I think it's irresponsible to be serving "real" GIF files to people now. You should be serving gfy's, gifv's, webm, mp4s, whatever. They're a fraction of the filesize making it easier for you to deliver high fidelity, full color animation very quickly, especially on bad mobile connections. (But I suppose if you're just doing this for small audiences (like bug reporting), then LICEcap is a good solution).
- Launch quicktime player
- do Screen recording
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
# REMOVE ANYTHING CABAL HAS EVER DROPPED ONTO YOUR SYSTEM | |
rm -rf ~/.{ghc,cabal} | |
# UPDATE CABAL | |
cabal update | |
# UPGRADE CABAL TO 1.18 (BECAUSE THEY ADDED SANDBOXES) | |
cabal install cabal-install | |
export PATH=~/.cabal/bin:$PATH ;# PUT THIS IN YOUR PROFILE |
NewerOlder