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
class Or | |
{ | |
public static Expression<Func<T, bool>> Combine<T>(Expression<Func<T, bool>> left, Expression<Func<T, bool>> right) | |
{ | |
var parameter = Expression.Parameter(typeof(T), "p"); | |
var combined = new ParameterReplacer(parameter).Visit(Expression.OrElse(left.Body, right.Body)); | |
return Expression.Lambda<Func<T, bool>>(combined, parameter); | |
} | |
class ParameterReplacer : ExpressionVisitor |
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
[ | |
[ | |
[ | |
{ | |
"index": 103, | |
"label": "LCtrl" | |
}, | |
{ | |
"index": 104, | |
"label": "LShift" |
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
import * as fs from 'fs'; | |
// Public: Download a file and store it on a file system using streaming with appropriate progress callback. | |
// | |
// * `sourceUrl` Url to download from. | |
// * `targetFile` File path to save to. | |
// * `progressCallback` Callback function that will be given a {ByteProgressCallback} object containing | |
// both bytesDone and percent. | |
// * `length` Optional file length in bytes for cases where the server will not supply the | |
// Content-Length header but the value is known in advance. Without either the |
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
<script src="https://cdn.jsdelivr.net/npm/algoliasearch@3/dist/algoliasearchLite.min.js"></script> | |
<script src="https://cdn.jsdelivr.net/npm/algoliasearch-helper@2.26.0/dist/algoliasearch.helper.min.js"></script> | |
<script> | |
let searchForm = document.getElementById('search-form') | |
let hits = document.getElementById('hits') | |
let algolia = algoliasearch('{your-site-id}', '{your-search-token}') | |
let helper = algoliasearchHelper(algolia, '{your-index-name}', { hitsPerPage: 10, maxValuesPerFacet: 1, getRankingInfo: false }) | |
helper.on("result", searchCallback) | |
function runSearch() { |
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: | |
docker: | |
- image: circleci/ruby:2.3 | |
working_directory: ~/jekyll | |
environment: | |
- JEKYLL_ENV=production | |
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true | |
- JOB_RESULTS_PATH=run-results |
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
PAW Database : JEKYLL.sna | |
Extracted by UNPAWS32 v2.1 | |
General data | |
------------ | |
Locations 25 | |
Objects 15 |
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
PAW Database : CrystalQuest.z80 | |
Extracted by UNPAWS32 v2.1 | |
General data | |
------------ | |
Locations 49 | |
Objects 60 |
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
; Code by Mark Harris, published in Your Sinclair Issue 59 http://live.worldofspectrum.org/infoseek/magazines/your-sinclair/59#20 | |
; Disassembly and comments by Damien Guard. | |
ORG 28000 | |
; Setup pages to allow 48K ROM to be copied to RAM page 4. | |
DI | |
LD A,0x14 ; 48K ROM at 0x0000, RAM page 4 at 0xc000 | |
LD BC,0x7ffd ; 128K paging port | |
OUT (C),A ; Switch the pages |
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
#!/bin/bash | |
fl5reg="HKCU\Software\FontLab\Studio 5\Directories" | |
for i in "$@" | |
do | |
name="${i%.*}" | |
echo Processing $name | |
pw preview "$i" . >> /dev/null | |
psf="${name}.psf" | |
vfb="${name}.vfb" | |
zx2psf "$i" "${psf}" --mode=move1 --graphics=none |
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
#!/bin/bash | |
fl5reg="HKCU\Software\FontLab\Studio 5\Directories" | |
for i in "$@" | |
do | |
name="${i%.*}" | |
echo Processing $name | |
mkdir -p PC | |
psf="PC/${name}.psf" | |
vfb="PC/${name}.vfb" |