Skip to content

Instantly share code, notes, and snippets.

View jesgs's full-sized avatar
🍜
Ramen connoisseur

Jess Green jesgs

🍜
Ramen connoisseur
View GitHub Profile
@jesgs
jesgs / Three Wise Monkeys.md
Created May 8, 2018 03:58 — forked from malarkey/Three Wise Monkeys.md
Three Wise Monkeys (NDA)

Date: [date]

Between us [company name] and you [customer name].

Summary:

In short; neither of us will share any confidential information about each-other, by any means, with anyone else.

What’s confidential information?

@jesgs
jesgs / .travis.yml
Last active April 21, 2019 19:31
Bare-bones .travis.yml file.
language: php
php:
- 7.1.11
dist: trusty
sudo: false
services:
- mysql
SELECT
table_name AS `Table`,
round(((data_length + index_length) / 1024 / 1024), 2) `Size in MB`
FROM information_schema.TABLES
WHERE table_schema NOT IN ('performance_schema', 'mysql', 'information_schema')
ORDER BY (data_length + index_length) DESC;
@jesgs
jesgs / git-example.bash
Created April 13, 2019 23:31
Update git email address
git config --global user.email "your@email_address.tld"
git rebase -i
git commit --amend --reset-author
git rebase --continue
git push
@jesgs
jesgs / next-comic-link-example.php
Last active August 26, 2018 13:25
Turn comic image into "next comic" link
.marquee {
overflow: hidden;
position: relative;
}
.marquee .responsive-table {
width: 100%;
height: max-content;
display: block;
@jesgs
jesgs / console-log.php
Created August 8, 2018 18:19
Quick var_dump for the console
<?php
// maybe expand this to do more than just objects and arrays?
echo "<script>console.log(" . json_encode($myObjectOrArray) . ");</script>";

Matcha Green Tea Mug Cake

Picture on Instagram

Tools:

Favorite large mug. Soup mug would be ideal.

Ingredients:

  • 4 tbs flour (sifted)
  • 2 tbs sugar
@jesgs
jesgs / README-git-hooks.md
Last active December 8, 2017 15:59
Git post-receive hook for running npm run production on Laravel installs

Just some git hooks I'm putting together

<?php
/**
* Theme view template example using locate_template
*
* @return string
*/
function my_theme_template()
{
// do view related stuff