Trying from here
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
import DS from 'ember-data'; | |
function delay(ms) { | |
return new Promise(resolve => setTimeout(resolve, ms)); | |
} | |
export default DS.Adapter.extend({ | |
async findRecord(store, type, id, snapshot) { | |
console.log(`findRecord(${type}, ${id})`, snapshot); | |
await delay(2000); |
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
import Controller from '@ember/controller'; | |
export default class ApplicationController extends Controller { | |
appName = 'Ember Twiddle'; | |
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
{ | |
"id": "00000000-0000-0000-0000-000000000000", | |
"name": "carnet_de_bord-2023-09-13T07:45:58.json", | |
"sources": [ | |
{ | |
"id": "ac417969-91a8-4806-bc03-3d70d065e5d1", | |
"name": "carnet_de_bord-2023-09-13T07:45:58.json", | |
"kind": { | |
"kind": "JsonLocalFile", | |
"name": "carnet_de_bord-2023-09-13T07:45:58.json", |
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
[["FREY","FRED"],["FREY","FREE"],["FREY","FREQ"],["BOTH","BATH"],["BOTH","BETH"],["BETS","BATS"],["BETS","BEDS"],["BETS","BEES"],["BETS","BEST"],["BETS","BETA"],["BETS","BETH"],["SAND","DANS"],["SAND","HAND"],["SAND","RAND"],["SAND","BAND"],["SAND","LAND"],["SAND","SAID"],["PUFF","DUFF"],["PUFF","BUFF"],["PUFF","CUFF"],["SANE","SAND"],["SANE","CANE"],["SANE","PANE"],["SANE","JANE"],["SANE","DANE"],["SANE","KANE"],["SANE","LANE"],["SANE","SAFE"],["SANE","SAGE"],["SANE","SAKE"],["SANE","SALE"],["SANE","SAME"],["SANG","SAND"],["SANG","SANE"],["SANG","GANG"],["SANG","HANG"],["SANG","RANG"],["SANG","BANG"],["SANG","LANG"],["BYTE","BITE"],["SUMS","SIMS"],["SUMS","SUBS"],["BOTS","BOTH"],["BOTS","BETS"],["BOTS","BITS"],["BOTS","BATS"],["BOTS","BOSS"],["PAGE","MAGE"],["PAGE","GAGE"],["PAGE","PACE"],["PAGE","CAGE"],["SANS","SAND"],["SANS","SANE"],["SANS","SANG"],["SANS","CANS"],["SANS","PANS"],["SANS","MANS"],["SANS","DANS"],["SANS","HANS"],["SANS","FANS"],["SUNG","SANG"],["SUNG","SONG"],["SUNG","JUNG"],["SUNG","GUNS"] |
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
export default function transformer(file, { jscodeshift }) { | |
const j = jscodeshift; | |
return j(file.source) | |
// search for "path" properties with matching value | |
.find(j.Property, prop => { | |
return prop.key.name === "path" && /division/.test(prop.value.value) | |
}) | |
// go to enclosing object literal | |
.closest(j.ObjectExpression) | |
.forEach((objPath) => { |
calculatePixelAndSolenoid in v0.75 (looks to be the same logic as current, just clearer)
With the lace carriage, the computed pixel/solenoid shift seems different between right and left directions!
Computing (pixelToSet - solenoidToSet) % 16
which should be independent of direction:
dir | shift | K | L |
---|---|---|---|
Right | Regular | 8 | 0 |
Shifted | 0 | 8 |
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
import { knex } from '../../../../../db/knex-database-connection.js'; | |
import { NotFoundError } from '../../../../shared/domain/errors.js'; | |
import { CertificationCandidate } from '../../../../shared/domain/models/index.js'; | |
import { ComplementaryCertification } from '../../../session-management/domain/models/ComplementaryCertification.js'; | |
import { SessionManagement } from '../../../session-management/domain/models/SessionManagement.js'; | |
const getWithCertificationCandidates = async function ({ id }) { | |
const session = await knex.from('sessions').where({ id }).first(); | |
if (!session) { |
OlderNewer