mockOne := [ |map|
map := Dictionary new.
32 timesRepeat: [
map
at: 1000 atRandom asWords asSymbol
put: {
2 atRandom = 1.
1e9 atRandom.
1e9 atRandom negated.
View benchmarks.md
View Dockerfile
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 debian:buster | |
EXPOSE 1700/tcp | |
# Base support | |
RUN id && ls -la /var/cache/apt/ | |
RUN \ | |
apt-get update && \ | |
apt-get -y install procps libssl1.1 bzip2 python3 python3-requests wget make zip unzip libx11-6 libgl1-mesa-glx libfontconfig1 libssl1.1 python3-pip libcurl3-gnutls strace | |
# install image-launch |
View gist:8d64bfd003cb90d1a38b43384ed84354
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
➜ telepharo git:(master) make server | |
make -C ../minimal | |
../bin/download-vm.sh | |
downloading get.pharo.org/32/vm80 | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 5306 100 5306 0 0 5034 0 0:00:01 0:00:01 --:--:-- 5034 | |
Downloading the latest pharoVM: | |
http://files.pharo.org/get-files/80/pharo-mac-stable.zip | |
pharo-vm/Pharo.app/Contents/MacOS/Pharo |
View gist:c08cb7885d6cc7a45065fb5ca90422e9
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
// | |
// MIXIN | |
// | |
import { Component, Vue } from 'vue-property-decorator' | |
import stringEntropy from 'fast-password-entropy' | |
@Component({}) | |
export default class PasswordDefinition extends Vue { | |
public showPassword: boolean = false | |
public showConfirmation: boolean = false |
View CircleCI to deploy on Google Cloud
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
version: 2 | |
jobs: | |
build: | |
working_directory: /app | |
docker: | |
- image: docker:17.05.0-ce-git | |
auth: | |
#Put the contents of keyfile.json into an environment variable for the build called GCR_CREDS, which is then passed in. | |
username: _json_key | |
password: $GOOGLE_AUTH |
View Smalltalk language notes
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
"************************* by Chris Rathman ***************************** | |
* Allowable characters: * | |
* - a-z * | |
* - A-Z * | |
* - 0-9 * | |
* - .+/\*~<>@%|&? * | |
* - blank, tab, cr, ff, lf * | |
* * | |
* Variables: * | |
* - variables must be declared before use * |
View get the bound model?
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
<td> | |
<span ng-bind="Cases.humaneNextSessionOf(case)"></span> | |
</td> | |
and in the controller we have: | |
... | |
let result = $compile(thatSpan)($scope); | |
View lessc failing
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
/** Scott Bakers Colors **/ | |
@adr-red: #ea5a5a; | |
@adr-blue: #23b1f7; | |
@adr-yellow: #ffcc00; | |
@adr-green: #28bd8b; | |
@adr-dark: #1f222d; | |
@adr-light-blue: #f4f7fa; | |
/** Begin Guy **/ |
View setting a custom model from a table view controller to a detail view controller
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
override func prepare(for segue: UIStoryboardSegue, sender: Any?) { | |
switch segue.identifier! { | |
case "showTodoDetail": | |
// Get the detail view controller in a local var | |
let todoDetailVC = segue.destination as! TodoDetailViewController | |
// Get the specific model in a local var | |
let cell = sender as! TodoTableViewCell | |