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
{ | |
"editor.codeLens": false, | |
"workbench.colorTheme": "Atom One Dark", | |
"editor.quickSuggestions": { | |
"other": false, | |
"comments": false, | |
"strings": false | |
}, | |
"editor.selectionHighlight": false, | |
"editor.highlightActiveIndentGuide": false, |
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
const data = { | |
users: [] | |
}; | |
for (let i=0; i<100; i++) { | |
data.users.push({ | |
id: i, | |
name: `User #${i}` | |
}); | |
} |
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
{ | |
"editor.codeLens": false, | |
"workbench.activityBar.visible": false, | |
"window.zoomLevel": 1, | |
"workbench.colorTheme": "One Dark Pro", | |
"editor.quickSuggestions": { | |
"other": false, | |
"comments": false, | |
"strings": false | |
}, |
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
#!/usr/bin/bash | |
# usage ./cr2_to_jpg.sh /path/to/cr2/images/ /path/to/converted/jpgs/ | |
i=1 | |
total=$(find $1 -type f | wc -l) | |
for file in $1*.CR2 | |
do | |
dcraw -c -w -b 1.5 $file | pnmtojpeg > $2$(basename $file .CR2).jpg |
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
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
; #Warn ; Enable warnings to assist with detecting common errors. | |
SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
LCtrl & Tab:: AltTab | |
!Tab:: Send ^{Tab} | |
!+Tab:: Send ^+{Tab} | |
^Space:: Send ^{Esc} |
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
docker-compose run --rm npm run gulpwatch |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>AR Demo</title> | |
<script src="https://aframe.io/releases/0.6.1/aframe.min.js"></script> | |
<script src="https://jeromeetienne.github.io/AR.js/aframe/build/aframe-ar.js"></script> | |
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script> | |
<meta name="apple-mobile-web-app-capable" content="yes"> | |
<script> | |
// We're going to register a custom event listener through a-frame that will fire |
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
<template> | |
<div class="wrapper"> | |
<div class="box" @scroll="handleScroll"> | |
<p>Your content here...</p> | |
</div> | |
<a href="#" v-if="hasScrolledToBottom">Show After Scrolling</a> | |
</div> | |
</template> | |
<script> | |
export default { |
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
const int ledPin = 0;// the number of the LED pin | |
// Variables will change : | |
int ledState = LOW; // ledState used to set the LED | |
// Generally, you should use "unsigned long" for variables that hold time | |
// The value will quickly become too large for an int to store | |
unsigned long previousMillis = 0; // will store last time LED was updated | |
// constants won't change : |
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
<?php | |
$img = imagecreatefrompng('test.png'); | |
$img_width = imagesx($img); | |
$img_height = imagesy($img); | |
?> | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Convert useless images to beautiful HTML!</title> | |
<style> |
NewerOlder