CSS keyframe Ferris-wheel animation. Easy to adjust speed and responsive.
A Pen by Jimba Tamang on CodePen.
const fs = require('fs'); | |
const _ = {}; | |
_.cloneDeep = require('lodash/cloneDeep'); | |
describe('Live Preview reload triggered by changes to site.json', () => { | |
const SITE_JSON_PATH = 'test/e2e/test_site/site.json'; | |
const originalJson = JSON.parse(fs.readFileSync(SITE_JSON_PATH, 'utf8')); | |
beforeAll(async () => { | |
await page.goto('http://localhost:8888/'); |
import subprocess | |
import shlex | |
import sys | |
def init(): | |
print("Initialize all-contributors") | |
subprocess.run(shlex.split("npx all-contributors-cli init"), shell=True) | |
CSS keyframe Ferris-wheel animation. Easy to adjust speed and responsive.
A Pen by Jimba Tamang on CodePen.
it('uploads a file', () => { | |
cy.fixture('sample.xlsx','binary').as('sample') | |
cy.get('input[type="file"]').then(function (el) { | |
const blob = Cypress.Blob.binaryStringToBlob(this.sample) | |
const file = new File([blob], 'sample.xlsx', { type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' }) | |
const list = new DataTransfer() | |
list.items.add(file) | |
const myFileList = list.files | |
el[0].files = myFileList | |
el[0].dispatchEvent(new Event('change', { bubbles: true })) |
{ | |
"content_scripts": [ | |
{ | |
"matches": ["http://*/*", "https://*/*"], | |
"js": ["inject.js"], | |
"all_frames": true | |
} | |
], | |
"web_accessible_resources": [ | |
"content.js" |
boolean closeEnough(double a, double b) { | |
double tolerance = 1E-4; | |
return Math.abs(a-b) < tolerance; | |
} |
/open Cruise.java | |
/open SmallCruise.java | |
/open BigCruise.java | |
/open Loader.java | |
/open RecycledLoader.java | |
/open level6.jsh | |
Cruise[] cruises = { | |
new BigCruise("B1111", 0, 60, 1500), | |
new SmallCruise("S1112", 0), | |
new BigCruise("B1113",30, 100,1500), |
https://docs.djangoproject.com/en/3.0/intro/reusable-apps/ |
def combinations(lst,n): | |
if n == 1: # every item is a combination | |
return list(map(lambda x: [x], lst)) | |
elif len(lst) == n: # there is only one combination | |
return [list(lst)] | |
else: | |
first = lst[0] | |
rest = lst[1:] | |
# similar to coin change, either include or not include the first item | |
# if include the first item, add first to the combinations of the rest items that form n-1 combi |
# How to solve install issue of WSL in Windows 10 | |
Rename Ubuntu.1604.2017.711.0_v1.appx to Ubuntu.1604.2017.711.0_v1.zip and extract all in to a folder. | |
Run Ubuntu.exe inside the extracted folder. |