Attempting to get Tabs view to show back buttons or at least "left-buttons"
A Pen by Justin Noel on CodePen.
| assets = params[:assets] | |
| assets.each do |asset| | |
| Asset.create(asset) | |
| end |
| zh-TW: | |
| admin: | |
| home: | |
| name: "網站首頁" | |
| pagination: | |
| previous: "« 前頁" | |
| next: "次頁 »" | |
| truncate: "…" | |
| misc: | |
| filter_date_format: "mm/dd/yy" # a combination of 'dd', 'mm' and 'yy' with any delimiter. No other interpolation will be done! |
This is a tribute to Studio Ghibli's Exhibition in Paris.
While walking through the exhibit, I learned that the castle in howl's moving castle was actually animated with a computer. I was surprised, and inspired to recreate this famous scene using web technologies that I'm familiar with, allowing the user to control the castle's movement.
I ended up biting off more than I could chew, and spending much longer than I had initially intended.
To achieve it, I cut all of the elements out of the film itself using photoshop to crop certain frames. I then inserted all of the elements directly to the DOM (no canvas) and animated them using GSAP and an epic amount of timelines. The legs' walk cycle were by far the most difficult part. I did not use any other software for the animation, just good old sublime text!
Animating characters in verbs to represent their action. Leave a comment if there's a word you'd like to see added and animated on this list.
| ```js | |
| /* | |
| to input string with some particular character which is treated as "backespace" and caculate the final output. | |
| ex: `112233###5566#` => `112556` | |
| ex: `####1122#33` => `11233` | |
| ex: `11########` => `` | |
| */ | |
| function main(value) { |
| /* TEST-02 | |
| A simple version key value store mechanism | |
| NOTE: here is the example about I will use this store instance. | |
| const store = new Store(); | |
| store.put('scott', 1); // => 10000 | |
| store.put('scott', 2); // => 10010 | |
| store.put('scott', 3); // => 10020 | |
| store.get('robert', 9999); // => null |
| const _ = require('lodash'); | |
| const xlsx = require('xlsx'); | |
| const sheet_to_json = (sheet, headerRowIndex = 1, map = v => v) => { | |
| const filteredData = _.toPairs(sheet).filter(([, value]) => value.hasOwnProperty('w')); | |
| const dataMap = _.fromPairs(filteredData); | |
| const columnKeys = []; | |
| let totalRows = 0; | |
| filteredData.forEach(([key]) => { | |
| const { columnKey, rowKey } = /(?<columnKey>[A-z]+)(?<rowKey>\d+)/.exec(key).groups; |
| const _ = require('lodash'); | |
| const template = { | |
| questionnaireIdToQuestionSeq: { | |
| '$sections.0.questionData.id$': '01', | |
| v: { | |
| '$aaaa.bb.cc$': { | |
| '$nn.qq.aa$': [ | |
| '$sections.0.questionData.id$', | |
| '$sections.0.questionData.id$', |
| <pre> | |
| scroll smoonthly: https://stackoverflow.com/questions/47011055/smooth-vertical-scrolling-on-mouse-wheel-in-vanilla-javascript | |
| </pre> | |
| <hr /> | |
| <div id="root"></div> |