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
var _ = require('underscore') | |
var cheerio = require('cheerio') | |
var request = require('request') | |
var println = console.log | |
request('http://www.yugioh-card.com/en/limited/', function (err, res, body) { | |
var $ = cheerio.load(body) | |
var cards = [] |
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
/** | |
* 遊戯王 CARD DATABASE でデッキの事故率を計算するスクリプト | |
* | |
* ■--- 使い方 ----- | |
* 1. Chromeから遊戯王 CARD DATABASEへアクセスし、事故率を調べたいデッキの詳細ページを開きます | |
* (URL例: https://www.db.yugioh-card.com/yugiohdb/member_deck.action?ope=1&cgid=3f193ef337a0999b4d57f57661d2daf8&dno=1&request_locale=ja ) | |
* 2. デベロッパーツールのコンソールを開き、このスクリプトの全文をコピペして流し込みます | |
* 3. 画面の右上に出現したボタンをクリックすると、初動に必要なカードを設定する画面が開きます | |
* 4. 任意の行の+マークをクリックし、初動に必要なカードを設定します。設定が完了したら「次へ」ボタンを押してください | |
* 5. 画面に従って計算を開始すると、初動札を初手で握れる確率が計算されます。ついでに指名者系などのうらら対策も合わせて握れていれば、そのパターンの確率も計算されます。 |
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
arduino-cli config set sketchbook_path %HOME%\projects\arduino | |
arduino-cli core update-index | |
arduino-cli core install arduino:avr | |
arduino-cli core install adafruit:avr | |
arduino-cli core install arduino:samd | |
arduino-cli core install adafruit:nrf52 | |
arduino-cli core install adafruit:samd | |
arduino-cli core install adafruit:wiced | |
arduino-cli core install esp8266:esp8266 |
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
/* | |
*How to display numbers on LCD screen by Arduino uno | |
*This is a very basic example which will help you to understand how cursor location arrangement can be done on the LCD screen. | |
* | |
*for more detail about this project please visit: | |
*https://arduinounomagic.com/2019/01/how-to-use-lcd-with-arduino-uno.html | |
*Copyright (C) 2007 Free Software Foundation, Inc. <[email protected]> | |
*for more projects based on Arduino uno please visit: https://arduinounomagic.com/ | |
*/ |
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
function smoothScroll() { | |
var a = $(window); | |
a.on("mousewheel DOMMouseScroll", function(b) { | |
b.preventDefault(); | |
b = b.originalEvent.wheelDelta / 120 || -b.originalEvent.detail / 3; | |
b = a.scrollTop() - parseInt(280 * b); | |
TweenMax.to(a, 1.1, { | |
scrollTo: { | |
y: b, | |
autoKill: !0 |
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
transitions: [{ | |
async leave(data) { | |
const done = this.async(); | |
loadingAnimation(); | |
await delay(1000); | |
done(); | |
}, | |
enter(data) { contentAnimation(); }, |
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
beforeLeave: ({ current }) => { | |
barba.wrapper.style.height = current.container.offsetHeight + 'px' | |
}, | |
beforeEnter: ({ current, next }) => { | |
barba.wrapper.style.height = next.container.offsetHeight + 'px' | |
current.container.style.zIndex = -1 | |
next.container.style.zIndex = 1 | |
} |
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
const tlLeave = gsap.timeline({ | |
defaults: { duration: 0.75, ease: "Power2.easeOut" }, | |
}); | |
const tlEnter = gsap.timeline({ | |
defaults: { duration: 0.75, ease: "Power2.easeOut" }, | |
}); | |
//Make the functions for the leave and enter animations | |
const leaveAnimation = (current, done) => { | |
const product = current.querySelector(".image-container"); |
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
const barba = require('@barba/core'); | |
const anime = require('animejs'); | |
const Home = require('./views/home'); | |
const WhoWeAre = require('./views/whoweare'); | |
class App { | |
init() { | |
barba.init({ | |
transitions: [{ |
NewerOlder