Skip to content

Instantly share code, notes, and snippets.

// Name: convert selected images
import "@johnlindquist/kit";
// Grab selected files
const files = (await getSelectedFile()).split("\n");
// Set up whitelist of formats
const supportedFormats = [".heic", ".png", ".gif", ".webp", ".jpg", ".jpeg"];
@davidsneal
davidsneal / html-share-buttons.html
Last active December 12, 2023 13:18
HTML Share Buttons
<!-- I got these buttons from simplesharebuttons.com -->
<div id="share-buttons">
<!-- Buffer -->
<a href="https://bufferapp.com/add?url=https://simplesharebuttons.com&amp;text=Simple Share Buttons" target="_blank">
<img src="https://simplesharebuttons.com/images/somacro/buffer.png" alt="Buffer" />
</a>
<!-- Digg -->
<a href="http://www.digg.com/submit?url=https://simplesharebuttons.com" target="_blank">
@davidsneal
davidsneal / update.sh
Last active April 25, 2022 17:20
Bash script for updating a laravel project - Run using ./update.sh
{
cd /project/root
git pull
composer install
php artisan migrate
gulp --production
chown www-data:www-data storage/ bootstrap/cache -R
php artisan queue:restart
}
@davidsneal
davidsneal / share-buttons.css
Created June 6, 2014 10:39
Share Buttons CSS
<style type="text/css">
#share-buttons img {
width: 35px;
padding: 5px;
border: 0;
box-shadow: 0;
display: inline;
}
@davidsneal
davidsneal / gist:2ff58d4df8480ce18c5c
Created July 1, 2015 16:16
HTML Share Buttons Popup
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
<script>
jQuery(document).ready(function($) {
jQuery('#share-buttons a').on('click', function(){
var width = 575,
height = 520,
left = (jQuery(window).width() - width) / 2,
top = (jQuery(window).height() - height) / 2,
opts = 'status=1' +
',width=' + width +
# editorconfig.org
root = true
[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

The Laracasts PHPStorm theme - modified.

This is a slightly modified version of the great Laracasts PHPStorm theme. I've added some styles for Verions Control (add, modified, deleted line...) and fixed some missing things like warnings.

Download

image

Mac: Add to ~/Library/Preferences/WebIde80/colors