Skip to content

Instantly share code, notes, and snippets.

View grantholle's full-sized avatar
🍔
55 burgers, 55 fries, 55 tacos, 55 pies, 55 cokes, 100 tater tots, 100 pizzas...

Grant grantholle

🍔
55 burgers, 55 fries, 55 tacos, 55 pies, 55 cokes, 100 tater tots, 100 pizzas...
View GitHub Profile
@grantholle
grantholle / 0_reuse_code.js
Last active August 29, 2015 14:17
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'i',
1 verbose cli 'sqlite3',
1 verbose cli '--verbose' ]
2 info using npm@3.10.3
3 info using node@v6.5.0
4 silly loadCurrentTree Starting
5 silly install loadCurrentTree
@grantholle
grantholle / loop.js
Last active January 25, 2018 23:43
async loop
// This will make the requests one at a time, not all at once,
// but everything after will still be called because it's async
// add tags to post
const tags = post.tags
post.tagNames = []
const loop = i => {
const tagnum = tags[i]
rp(tagUrl + tagnum).then(data => {
@grantholle
grantholle / trace.txt
Created February 1, 2018 04:54
PowerSchool 500 Stack Trace
runtime.support.InternalException: Unexpected exception occurred: java.lang.RuntimeException
com.pearson.powerschool.web.interceptor.LegacySystemInterceptor$ActionRunner.run(LegacySystemInterceptor.java:44)
com.pearson.powerschool.web.interceptor.LegacySystemHandler.lambda$runInHandler$0(LegacySystemHandler.java:34)
com.pearson.powerschool.web.interceptor.LegacySystemHandler.doRunInHandler(LegacySystemHandler.java:47)
com.pearson.powerschool.web.interceptor.LegacySystemHandler.runInHandler(LegacySystemHandler.java:33)
com.pearson.powerschool.web.interceptor.LegacySystemInterceptor.intercept(LegacySystemInterceptor.java:27)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
com.pearson.powerschool.web.interceptor.PowerSchoolEnabledInterceptor.intercept(PowerSchoolEnabledInterceptor.java:21)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
com.pearson.powerschool.web.interceptor.HttpHeadInterceptor.intercept(HttpHeadIntercept
runtime.support.InternalException: Unexpected exception occurred: org.springframework.transaction.TransactionSystemException
com.pearson.powerschool.web.interceptor.LegacySystemInterceptor$ActionRunner.run(LegacySystemInterceptor.java:44)
com.pearson.powerschool.web.interceptor.LegacySystemHandler.lambda$runInHandler$0(LegacySystemHandler.java:34)
com.pearson.powerschool.web.interceptor.LegacySystemHandler.doRunInHandler(LegacySystemHandler.java:47)
com.pearson.powerschool.web.interceptor.LegacySystemHandler.runInHandler(LegacySystemHandler.java:33)
com.pearson.powerschool.web.interceptor.LegacySystemInterceptor.intercept(LegacySystemInterceptor.java:27)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
com.pearson.powerschool.web.interceptor.PowerSchoolEnabledInterceptor.intercept(PowerSchoolEnabledInterceptor.java:21)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
com.pearson.powerschool.web.interceptor.HttpHeadInterce
@grantholle
grantholle / gist:bd6749b46aea859a12ced1c1cb45979e
Created September 8, 2019 05:03
Valet installation attempt
➜ composer global require laravel/valet
Changed current directory to /Users/grant/.composer
1/1: http://repo.packagist.org/p/provider-latest$d33b2c38d9884bf87536a4497d92a1e82d5f425b5ed6c48c3bc293e4a6ba668c.json
Finished: success: 1, skipped: 0, failure: 0, total: 1
Using version ^2.3 for laravel/valet
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
@grantholle
grantholle / tailwind.config.js
Created April 24, 2020 14:28
LDi brand colors in the form of a tailwind config file
module.exports = {
theme: {
extend: {
colors: {
ldi: {
primary: '#0085ca',
secondary: '#005b94',
dark: '#002237',
},
isc: {
@grantholle
grantholle / tailwind.js
Created May 1, 2020 23:59
Laraform tailwind theme starter
import utils from '@laraform/laraform/src/utils'
import defaultTheme from '@laraform/laraform/src/themes/default/essentials'
export default utils.extendTheme(defaultTheme, {
classes: {
/*
* Form
*/
form: 'block w-full',
Your subscription to our list has been confirmed.
Thank you for subscribing!
+298423
----MbG4n21t;bIeLQY
<p>Hi!</p>
<p>Thanks for joining the 529 Garage.</p>
<p>Your 529 Garage user name is:</p>
<p>Now, setup a password to complete your signup</p>
----NVYKwn9i;AwWyDO
@grantholle
grantholle / Paginator.vue
Last active October 17, 2020 05:55
A Vue pagination component for Laravel using Tailwind
<template>
<div class="bg-white px-4 py-3 flex items-center justify-between sm:px-6">
<div v-if="meta.total > 0" class="flex-1 flex justify-between sm:hidden">
<component :is="prevPage ? 'inertia-link' : 'button'" :href="prevPage" class="relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm leading-5 font-medium rounded-md text-gray-700 bg-white hover:text-gray-500 focus:outline-none focus:shadow-outline-blue focus:border-blue-300 active:bg-gray-100 active:text-gray-700 transition ease-in-out duration-150">
Previous
</component>
<component :is="nextPage ? 'inertia-link' : 'button'" :href="nextPage" class="ml-3 relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm leading-5 font-medium rounded-md text-gray-700 bg-white hover:text-gray-500 focus:outline-none focus:shadow-outline-blue focus:border-blue-300 active:bg-gray-100 active:text-gray-700 transition ease-in-out duration-150">
Next
</component>
</div>