Skip to content

Instantly share code, notes, and snippets.

View gtalarico's full-sized avatar
♥️
Python, Javascript, and Go

Gui Talarico gtalarico

♥️
Python, Javascript, and Go
View GitHub Profile
@gtalarico
gtalarico / fuck-docker.sh
Created April 5, 2019 18:44
For when you docker is misbehaving
#!/bin/bash
# By Andrew Salveson
docker rm -v $(docker ps -a -q -f status=exited)
docker rmi $(docker images -f "dangling=true" -q)
docker volume rm $(docker volume ls -qf dangling=true)
cat <<EOF
@gtalarico
gtalarico / OrbitControls.js
Last active March 21, 2019 06:27
threejs-vue-template-2
// src/three/OrbitControls.js
// Note: file content truncated for display
// Be sure to include the entire content from
// https://raw.githubusercontent.com/mrdoob/three.js/master/examples/js/controls/OrbitControls.js
/**
* @author qiao / https://github.com/qiao
* @author mrdoob / http://mrdoob.com
* @author alteredq / http://alteredqualia.com/
* @author WestLangley / http://github.com/WestLangley
@gtalarico
gtalarico / App.vue
Created March 21, 2019 06:09
three-vue-template-1
<template>
<div id="app">
<navbar />
<router-link to="/">Home</router-link>
</div>
</template>
<script>
import Navbar from '@/components/Navbar.vue'
export default {
@gtalarico
gtalarico / boxstarter.ps1
Last active January 15, 2019 19:09
Boxstarter setup script
# Description: Boxstarter Script
# Author: Gui Talarico
# Original boxstarter script by Jesse Frazelle (https://gist.github.com/jessfraz/7c319b046daa101a4aaef937a20ff41f)
#
#
# Author: Jess Frazelle <jess@linux.com>
# Last Updated: 2019-01-10
#
# Install boxstarter:
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
@gtalarico
gtalarico / debounced.vue
Created June 4, 2018 18:34
VueJs _.debounce filtering
<template>
<input class="input is-small" type="text" placeholder="Filter" v-model="query" @keyup='doFilter'>
</template>
<script>
...
data () {
return {
this.debouncedQuery = '',
this.query = ''
@gtalarico
gtalarico / .profile
Created May 24, 2018 00:14
Install Private Git on Heroku w/ exposing credentials in requirements.txt
# Add this file to app root, Heroku will execute it on start, clone repo and add location to path
DIR=./package
if [ -d "$DIR" ]; then
printf '%s\n' "Deleting existing folder: ($DIR)"
rm -rdf "$DIR"
fi
# GIT_CREDENTIALS=username:pwd
echo "Cloning..."
@gtalarico
gtalarico / keybase.md
Last active April 11, 2019 15:16
keybase.md

Keybase proof

I hereby claim:

  • I am gtalarico on github.
  • I am gtalarico (https://keybase.io/gtalarico) on keybase.
  • I have a public key whose fingerprint is B1FE ACB1 9ED2 D70D 98C0 ECCA 41B2 32A2 44F7 0F1F

To claim this, I am signing this object:

@gtalarico
gtalarico / forms-winforms.py
Created November 17, 2016 23:35
Winform For IronPython
import clr
import os
# Verify these are needed.
clr.AddReference('System')
clr.AddReference('System.Drawing')
clr.AddReference("System.Windows.Forms")
# Windows Forms Elements
from System.Drawing import Point, Icon, Color
@gtalarico
gtalarico / revitapidocs_MoveRoomTagToRoomCenter.py
Created October 28, 2016 16:52
RevitAPI::Code Snippets::Move Room Tag To Room Center
"""
Auto Move Tag to Center of Room
TESTED REVIT API:
2015 | 2016
This was written to be used with PyRevit, but can easilly be used as
a standalone script using the IronPythonShell, or
a Dynamo Python component.
"""
@gtalarico
gtalarico / timer.py
Last active October 5, 2016 04:34
Simple Timer Class
class Timer(object):
"Time and TimeIt Decorator"
def __init__(self):
self.start_time = time.time()
def stop(self):
end_time = time.time()
duration = end_time - self.start_time
return duration