This file contains 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
document.querySelectorAll(".ad__section-border").forEach(e => e.remove()); | |
document.querySelectorAll(".article-content__sign-in-group").forEach(e => e.remove()); | |
document.querySelectorAll(".article-content__widget-group").forEach(e => e.remove()); | |
document.querySelectorAll(".featured-video").forEach(e => e.remove()); |
This file contains 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
freq = 1; | |
amp = 110; | |
loopTime = 3; | |
t = time % loopTime; | |
wiggle1 = wiggle(freq, amp, 1, 0.5, t); | |
wiggle2 = wiggle(freq, amp, 1, 0.5, t - loopTime); | |
linear(t, 0, loopTime, wiggle1, wiggle2) |
This file contains 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
// importing data | |
import { onMount } from 'svelte'; | |
onMount(async() => { | |
const res = await fetch(`/tutorial/api/album`); | |
photos = await res.json(); | |
console.log(photos) | |
}) |
This file contains 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 Navbar from '../components/navbar.components' | |
import Head from 'next/head' | |
import topstory from "../styles/topstory.module.scss" | |
import Link from 'next/link' | |
import LocationOnIcon from '@mui/icons-material/LocationOn'; | |
export default function Home({story}) { | |
console.log(story.data) | |
return ( |
This file contains 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
<style> | |
.g-body { | |
max-width: 1200px; | |
margin: 0 auto; | |
padding: 0; | |
width: 100%; | |
font-family: droid sans, helvetica neue, Helvetica, Arial, sans-serif; | |
color: #444; | |
} | |
.g-kicker { |
This file contains 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
// reference: https://www.adobe.com/content/dam/acom/en/devnet/illustrator/pdf/Illustrator_Scriptin_Reference_JavaScript_cc.pdf | |
var doc = app.activeDocument; | |
var docPath = doc.path; | |
This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am kklai on github. | |
* I am kklai (https://keybase.io/kklai) on keybase. | |
* I have a public key ASA0D0z-ndlVlS4Sgxfa-zJewQumlo2sLXR-hfvQq2VUdQo | |
To claim this, I am signing this object: |
This file contains 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
// helper functions | |
var getJSON = function (nameOfFile) { | |
var dataFile = File(docPath + '/' + nameOfFile + ".json"); | |
dataFile.open(); | |
data = dataFile.read(); | |
data = eval(data); | |
dataFile.close(); | |
return data; | |
}; |
This file contains 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
<html> | |
<head> | |
<title></title> | |
<style type="text/css"> | |
body { | |
padding: 25%; | |
} | |
</style> | |
</head> | |
<body> |
This file contains 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
<html> | |
<head> | |
<title></title> | |
<style type="text/css"> | |
body { | |
padding: 25%; | |
} | |
</style> | |
</head> | |
<body> |
NewerOlder