Skip to content

Instantly share code, notes, and snippets.

View Albert-IV's full-sized avatar

Albert Engelbrecht Albert-IV

View GitHub Profile
@Albert-IV
Albert-IV / pg1350-DR.kicad_mod
Created November 20, 2022 00:46
Manually updated pg1350-DR footprint originally from the kleebs repostiory
(footprint "pg1350-DR" (version 20211014) (generator pcbnew)
(layer "F.Cu")
(tedit 617C445D)
(attr smd)
(fp_text reference "REF**" (at 0 0) (layer "F.Fab") hide
(effects (font (size 1 1) (thickness 0.15)))
(tstamp 97591645-4003-4523-81f2-023856cf2ba5)
)
(fp_text value "pg1350-DR" (at 0 7) (layer "F.Fab")
(effects (font (size 1 1) (thickness 0.15)))
@Albert-IV
Albert-IV / .tmux.conf
Created October 3, 2021 02:12
.tmux.conf
##########################################################
# Setting up correct Terminal coloring
#
# See:
# https://jdhao.github.io/2018/10/19/tmux_nvim_true_color/
##########################################################
# Set up colors
set -g default-terminal "tmux-256color"
# tell Tmux that outside terminal supports true color
<!-- Piwik -->
<script type="text/javascript">
var _paq = _paq || [];
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
//Store Piwiks tracking information so we can reference it later
_paq.push([function() {
# ************************************
# Default template in module puppetlabs-apache
# Managed by Puppet
# ************************************
NameVirtualHost *:80
<VirtualHost *:80>
ServerName suretybonds.dev
LoadModule passenger_module /usr/local/rvm/gems/ruby-2.1.2/gems/passenger-5.0.6/buildout/apache2/mod_passenger.so
<body>
<div id="wrapper">
<h1>Evan You</h1>
<h2>Design, Code &amp; Things in Between&nbsp;</h2>
<p><a href="http://blog.evanyou.me" target="_blank">Blog</a></p>
<p><a href="https://twitter.com/youyuxi" target="_blank">Twitter</a></p>
<p><a href="https://github.com/yyx990803" target="_blank">Github</a></p>
<p><a href="https://plus.google.com/u/1/112810528656728788190" target="_blank">G+</a></p>
<p><a href="http://weibo.com/arttechdesign" target="_blank">微博</a></p>
</div>
[{
logs: ['something', 'else', 'call', 'phone']
}, {
logs: ['something', 'sink', 'vehicle', 'bathroom']
}, {
logs: ['cats']
}]
getRandomStr = () ->
result = ''
validChars = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
# Since vanilla for loops are nearly impossible in CoffeeScript...
outputStr = [ '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '' ]
outputStr = outputStr
.map (s) ->
return validChars[Math.floor(Math.random() * validChars.length)]
.join('')
return outputStr
[
"AK",
"AL",
"AR",
"AZ",
"CA",
"CO",
"CT",
"DC",
"DE",
fieldKeys = {
"1": "Name",
"2": "Email",
"3": "Some Field"
}
usefulInfo = entries.map(function(entryArr) {
return entryArr.reduce(function(obj, row, idx) {
var correctKey = fieldKeys[idx]
obj[correctKey] = row;
*** LOCAL GEMS ***
addressable (2.4.0)
amq-protocol (2.0.1)
bcrypt (3.1.11)
bcrypt-ruby (3.1.5)
bigdecimal (1.2.4)
builder (3.2.2)
bundler (1.12.5, 1.6.2)
bundler-unload (1.0.2)