Skip to content

Instantly share code, notes, and snippets.

View diverted247's full-sized avatar

Ted Patrick diverted247

View GitHub Profile
@diverted247
diverted247 / README
Last active November 23, 2025 04:13
Export slides from Google Slides as SVG - Console Script (Chrome tested)
To export SVG from Google Slides.
1. Open Slide deck.
2. View -> 100%
3. Click on every thumbnail from first to last, this puts the SVG into the DOM.
4. Paste the export.js in the console.
5. Make sure to allow multiple downloads.
6. All SVG should be in Downloads folder.
Cheers,
@diverted247
diverted247 / IN > Storage.ts
Last active April 11, 2025 16:45
TypeScript 0.9.7 AMD Modules using import and require()
export class Storage{
static STORAGE_KEY:string = 'todos-vuejs';
static todos:any = null;
static fetch(){
if( !Storage.todos ){
Storage.todos = JSON.parse( localStorage.getItem( Storage.STORAGE_KEY ) || '[]' );
}
return Storage.todos;
}
@diverted247
diverted247 / TimecodeFilter.js
Created August 27, 2015 18:58
Timecode Filter in Vuejs... Pass seconds as number returns formatted minutes and seconds
Vue.filter( 'timecode' , function( value ){
var seconds = Math.floor( value % 60 ).toString();
var minutes = Math.floor( value / 60 ).toString();
if( seconds.length === 1 ){
seconds = '0' + seconds;
}
return minutes + ':' + seconds;
});
@diverted247
diverted247 / .elasticbeanstalk_config.yml
Last active May 12, 2020 15:36
AWS EB - Golang Binary Server Deployment
branch-defaults:
default:
environment: test
group_suffix: null
global:
application_name: test
default_platform: Go 1.4
default_region: us-west-2
@diverted247
diverted247 / gist:9533efac917a40a18755086784a5d043
Created March 13, 2017 22:43
Export 4K Video from Powerpoint
Sub Export4KPowerpoint()
If ActivePresentation.CreateVideoStatus <> ppMediaTaskStatusInProgress Then
ActivePresentation.CreateVideo FileName:=Environ("USERPROFILE") & "\Desktop\export.mp4", _
UseTimingsAndNarrations:=True, _
VertResolution:=2160, _
FramesPerSecond:=30, _
Quality:=100
Else: MsgBox "There is another conversion to video in progress"
End If
End Sub
@diverted247
diverted247 / inputtext.js
Created December 7, 2017 16:15
Vue Component Wrapping <input>
Vue.component( 'inputtext' , {
template:'<input type="text" :value="value" @input="input($event.target.value)" @change="change" @keyup="keyup" @keypress="keypress" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" >',
props:['value'],
methods:{
input( newInput ){
this.$emit('input', newInput);
},
change(){
//console.log( 'change: ' + this.value );
if( this.$el.maxlength && this.$el.value.length > this.$el.maxlength ){
{
"order": {
"userProfile": {
"street2": "",
"isLogin": true,
"street1": "10955 La Cantera Pkwy",
"lastName": "Patrick",
"businessName": null,
"zipcode": "78256",
"state": "TX",
@diverted247
diverted247 / Welcome.html
Created October 1, 2016 18:10
TypeScript Modules for Vue. Using namespaces with AMD loader.
<div class="div__center-content">
<div style="padding-top:1em">
<p v-if="institution.showPersonalization==true" class="welcome__text-welcome">{{* lang.welcome.text.welcome}}{{welcomeName}}</p>
<p class="h4 welcome__text-title">{{* lang.welcome.text.title }}</p>
<p class="h11 welcome__text-subtitle">{{* lang.welcome.text.subTitle }}</p>
</div>
<checkcarousel></checkcarousel>
<div class="h5" v-if="activeProduct.isBusinessProduct">{{ activeProduct.name }}</div>
<div v-if="order.placedOn != ''"><span class="welcome__text-order">{{* lang.welcome.text.order }} {{lastCheckOrderDate}} </span> | <a class="welcome__text-status" :href.once="'/express-checkout/link/orderstatus/' + linkToken" @click="status">{{* lang.welcome.text.status }}</a></div>
<div class="pure-u-1 welcome__btn">
@diverted247
diverted247 / app.js
Last active September 17, 2016 16:00
Async loading pattern for loading Vue components as modules and wiring via vLoad
//setup component to load async when used
//VLoad returns an async function(resolve, reject) {...}
//this will
Vue.component( 'arrowback' , VLoad( 'component.js' ) );
new Vue({
el: 'body',
template:"<arrowback></arrowback>"
});
@diverted247
diverted247 / efs.config
Created August 19, 2016 17:15
Elastic Beanstalk + EFS where deployment does not delete mount contents
packages:
yum:
nfs-utils: []
commands:
0_umount_efs:
command: sudo umount /efs_mount;
ignoreErrors: true
files: