-
To get started, start in the ruetech docker dev env directory (
ruetech/dockerfiles/dev_environment
). -
Connect to VPN
-
Shut down any running dev env docker containers:
docker compose down
- Check out the most recent code from
develop
:
To get started, start in the ruetech docker dev env directory (ruetech/dockerfiles/dev_environment
).
Connect to VPN
Shut down any running dev env docker containers:
docker compose down
develop
:# To see the current URL: | |
print('Current URL: {}'.format(self.browser.current_url)) | |
main = self.driver.find_elements(By.CSS_SELECTOR, '.main-content')[0] | |
main_children = self.driver.find_elements(By.CSS_SELECTOR, '.main-content > *') | |
print('main', main.get_attribute('outerHTML')) | |
print('len', len(main_children)) |
const people = { | |
1: 'Darren', | |
2: 'Devin', | |
3: 'Sean', | |
}; | |
function reportOnId(id) { | |
return new Promise((resolve, reject) => { | |
const name = people[id]; |
This is for those using Emotion CSS
jscodeshift -t codemod__emotion_styled.js DIRECTORY_TO_RECURSIVELY_MOD
Limitations: only works for styled
calls that have exactly one argument.
Thanks to Andrew Levine for their great intro to codemods here: https://medium.com/@andrew_levine/writing-your-very-first-codemod-with-jscodeshift-7a24c4ede31b
function newDecodedSourceSync(audioData) { | |
return new Promise((resolve) => { | |
const audioCtx = new AudioContext(); | |
audioCtx.decodeAudioData(audioData, buffer => { | |
const source = createBufferSource(audioCtx, buffer); | |
resolve([audioCtx, buffer, source]); | |
}, | |
(e) => `Error with decoding audio data ${e.err}` |
-- ================================== | |
-- Marketplace Brand-Category filters | |
-- ================================== | |
SELECT | |
CASE WHEN brand.name IS NOT NULL THEN brand.name ELSE '[All]' END AS 'Brand', | |
CASE WHEN class.name IS NOT NULL THEN CONCAT_WS(' > ', division.name, department.name, class.name, subclass.name) ELSE '[All]' END AS 'Product Type', | |
channel.name AS 'Channel' | |
FROM marketplace_brandcategoryfilter as filter | |
LEFT OUTER JOIN brands_brand as brand | |
ON (brand.id = filter.brand_id) |
// The Grid component allows an element to be located | |
// on a grid of tiles | |
Crafty.c('Grid', { | |
init: function() { | |
this.attr({ | |
w: Game.map_grid.tile.width, | |
h: Game.map_grid.tile.height | |
}); | |
}, |