This file contains hidden or 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
| var Rx = require('rx'); | |
| var _ = require('lodash'); | |
| var defaultOptions = { | |
| minWidth: 1050, | |
| containerRefName: 'container' | |
| }; | |
| module.exports = function(options) { | |
| return { |
This file contains hidden or 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
| function! OmniSharp#RunTests(mode) abort | |
| wall | |
| python buildcommand() | |
| if a:mode !=# 'last' | |
| python getTestCommand() | |
| endif | |
| let s:cmdheight=&cmdheight | |
| set cmdheight=5 |
This file contains hidden or 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
| describe("n queens", function() { | |
| var isSafe = R.curry((col, placedQueens) => { | |
| var row = R.length(placedQueens); | |
| var notThreatened = ([r, c]) => col !== c && Math.abs(col - c) !== row - r; | |
| var rowsWithQueen = R.zip(R.reverse(R.range(0, row)), placedQueens); | |
| return R.all(notThreatened, rowsWithQueen); | |
| }); | |
| var queens = (n) => { | |
| var columns = R.range(0, n); |
This file contains hidden or 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
| #!/bin/bash | |
| notebook_files=$(git diff --cached --name-only | grep -E '\.ipynb$') | |
| if [ -n "$notebook_files" ] | |
| then | |
| source ./notebook/venv/bin/activate || exit | |
| for file in $notebook_files | |
| do |
OlderNewer