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
//replace #fromA with your button/control and #toB with the target to which you wanna scroll to. | |
$("#fromA").click(function() { | |
$("html, body").animate({ scrollTop: $("#toB").offset().top }, 1500); | |
console.log('executed scrollToElement'); | |
return true; | |
}); |
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
#target Photoshop | |
//Initialize Photoshop & choose what file is processed via openDialog | |
app.bringToFront(); | |
var filepath = File.openDialog (); | |
var fileRef = File(filepath); | |
var docRef = app.open(fileRef); | |
//required Variables |
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
#target Photoshop | |
//Initialize Photoshop & choose what file is processed | |
app.bringToFront(); | |
var filepath = File.openDialog (); | |
var fileRef = File(filepath); | |
var docRef = app.open(fileRef); | |
//required Variables | |
var i=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
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<!-- google's material design colours from | |
http://www.google.com/design/spec/style/color.html#color-ui-color-palette --> | |
<!--reds--> | |
<color name="md_red_50">#fde0dc</color> | |
<color name="md_red_100">#f9bdbb</color> | |
<color name="md_red_200">#f69988</color> |
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
cd ../Desktop/res/; mkdir -p drawable-xxhdpi; mkdir -p drawable-xhdpi; mkdir -p drawable-hdpi; mkdir -p drawable-mdpi | |
for file in $(find . -type f -iname '*-xxhdpi*'); do | |
mv "$file" "drawable-xxhdpi/${file/-xxhdpi/}"; | |
done | |
for file in $(find . -type f -iname '*-xhdpi*'); do | |
mv "$file" "drawable-xhdpi/${file/-xhdpi/}"; | |
done | |
for file in $(find . -type f -iname '*-hdpi*'); do |
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
// | |
// ContentView.swift | |
// MeshGradientPlayground | |
// | |
// Created by Bill Richards on 6/14/24. | |
// | |
import SwiftUI | |
struct ContentView: View { |