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
# download image here https://www.microsoft.com/en-us/software-download/windows10ISO | |
# mount it | |
diskutil list | |
# check identifier, it's could be like disk2 | |
# format disk using identifier in the end | |
diskutil eraseDisk ExFat "WINDOWS10" MBR disk2 | |
# copy all files from the image mounted | |
cp -rp /Volumes/CCCOMA_X64FRE_EN-US_DV9/* /Volumes/WINDOWS10/ | |
# WAY 2, (for image path - just grab iso and drag it into console) |
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
# This redirects the ffprobe help to a file | |
ffprobe -h > ffprobe_help.txt | |
# This creates a report next to your file | |
ffprobe -report SOMEFILE.mp4 | |
# This creates your report as .json file next to your file | |
ffprobe -v quiet -print_format json -show_format -show_streams SOMEFILE.mp4 > ffprobe.json |
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
// https://twitter.com/rauschma/status/1088778137452924929 | |
// TypeScript | |
enum Response { | |
No, | |
Yes | |
} | |
// JavaScript | |
const Response = Object.freeze({ |
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
/* https://dev.webonomic.nl/how-to-disable-css-transforms-transistions-and-animations */ | |
*, :before, :after { | |
/*CSS transitions*/ | |
transition-property: none !important; | |
/*CSS transforms*/ | |
transform: none !important; | |
/*CSS animations*/ | |
animation: none !important; | |
} |
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
/* | |
https://twitter.com/Una/status/951519740840873984 | |
"Break out" of a parent's containing width to take the full screen of a page w/this nice utility class: | |
*/ | |
.full-width { | |
width: 100vw; | |
position: relative; | |
left: 50%; | |
right: 50%; |
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
// https://twitter.com/jaffathecake/status/1038030104566358016?s=12 | |
const hexColor = '#' + | |
Math.floor(Math.random() * 0x1000000) | |
.toString(16) | |
.padStart(6, '0'); |
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
// https://html.spec.whatwg.org/multipage/media.html#mediaevents | |
const events = [ | |
'loadstart', | |
'progress', | |
'suspend', | |
'abort', | |
'error', | |
'emptied', | |
'stalled', | |
'loadedmetadata', |
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
# to start, you could repeat it up to x-cores/threads for example | |
yes > /dev/null & | |
# to stop | |
killall yes |
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
// https://medium.com/dailyjs/understanding-v8s-bytecode-317d46c94775 | |
// node --print-bytecode --print-bytecode-filter=ZXC v8-bytecode.js | |
function ZXC() { | |
var A = 0; | |
let B = 0; | |
const C = 0; | |
const O = {}; | |
const N = 9; |
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
/* -------------------------------------------------- */ | |
/* https://twitter.com/wesbos/status/928731575684091904/photo/1 */ | |
.wrapper { | |
display: grid; | |
grid-template-columns: repeat(12, 1fr); | |
grid-gap: 10px; | |
} | |
.sidebar { |