string
int
float
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
"append_time_stamp_information_type": false, | |
"default_playback_speed": 1, | |
"default_video_quality_wifi": 1080, | |
"disable_ambient_mode": true, | |
"disable_auto_captions": true, | |
"disable_like_dislike_glow": true, | |
"disable_swipe_to_enter_fullscreen_mode_below_the_player": true, | |
"disable_translucent_status_bar": true, | |
"enable_swipe_brightness": false, | |
"enable_swipe_volume": false, |
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
export function requestDeviceOrientation(fn, createTrigger) { | |
// iOS 13+ | |
if ( | |
window.DeviceOrientationEvent !== undefined && | |
typeof window.DeviceOrientationEvent.requestPermission === 'function' | |
) { | |
// check if the user gave permissin in the past | |
window.DeviceOrientationEvent.requestPermission().then((response) => { | |
if (response == 'granted') { | |
fn() |
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
https://i.imgur.com/f61MKLO.jpg |
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
# Disable screensaver and blank screens | |
@xset s off | |
@xset -dpms | |
@xset s noblank | |
@xscreensaver -no-splash | |
# Hide mouse, must have installed unclutter with `sudo apt-get install unclutter` | |
@unclutter | |
# Load chromium and open the website in full screen mode |
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
// Future versions of Hyper may add additional config options, | |
// which will not automatically be merged into this file. | |
// See https://hyper.is#cfg for all currently supported options. | |
module.exports = { | |
config: { | |
// choose either `'stable'` for receiving highly polished, | |
// or `'canary'` for less polished but more frequent updates | |
updateChannel: 'canary', |
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
// | |
// $$$$$$$$\ $$$$$$\ $$$$$$\ | |
// $$ _____|$$ __$$\ $$ __$$\ | |
// $$ | $$ / \__|$$ / \__| | |
// $$$$$\ $$ |$$$$\ $$ |$$$$\ | |
// $$ __| $$ |\_$$ |$$ |\_$$ | | |
// $$ | $$ | $$ |$$ | $$ | | |
// $$$$$$$$\ \$$$$$$ |\$$$$$$ | | |
// \________| \______/ \______/ | |
// |
https://www.youtube.com/user/shiffman/playlists?shelf_id=6&sort=dd&view=50
There are many distribution functions, such as random, gaussian, perlin noise, or some custom function.
const x = random(0, 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
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
NewerOlder