Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am damionvega on github.
  • I am damionvega (https://keybase.io/damionvega) on keybase.
  • I have a public key ASB2N9Ckap3OC-4LWMKBKwz0kH0MI3dtbpsrak3ztUubiAo

To claim this, I am signing this object:

@damionvega
damionvega / settings.json
Created January 15, 2022 18:29
VS Code Settings - 2022
{
"git.autofetch": true,
"terminal.integrated.fontSize": 13,
"editor.fontFamily": "Fira Code",
// "editor.fontFamily": "FiraCode-Retina",
"editor.fontLigatures": true,
"editor.maxTokenizationLineLength": 100000,
"editor.acceptSuggestionOnCommitCharacter": false,
"explorer.confirmDragAndDrop": false,
"explorer.confirmDelete": false,
@damionvega
damionvega / iterm2_switch_automatic.md
Created May 4, 2020 02:49 — forked from FradSer/iterm2_switch_automatic.md
Switch iTerm2 color preset automatic base on macOS dark mode.
  1. Add switch_automatic.py to ~/Library/ApplicationSupport/iTerm2/Scripts/AutoLaunch with:
#!/usr/bin/env python3

import asyncio
import iterm2

async def main(connection):
    async with iterm2.VariableMonitor(connection, iterm2.VariableScopes.APP, "effectiveTheme", None) as mon:
sudo yum install autoconf automake bzip2 bzip2-devel cmake freetype-devel gcc gcc-c++ git libtool make mercurial pkgconfig zlib-devel -y
mkdir ~/ffmpeg_sources
# nasm
cd ~/ffmpeg_sources
curl -O -L https://www.nasm.us/pub/nasm/releasebuilds/2.14.02/nasm-2.14.02.tar.bz2
tar xjvf nasm-2.14.02.tar.bz2
cd nasm-2.14.02
./autogen.sh
./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin"
@damionvega
damionvega / settings.json
Last active February 6, 2019 21:41
VSCode settings
{
"window.zoomLevel": 0,
"bracketPairColorizer.consecutivePairColors": [
"()",
"[]",
"{}",
["Orange", "Orchid", "LightSkyBlue"],
"Red"
],
"breadcrumbs.enabled": true,
@damionvega
damionvega / .editorconfig
Created March 9, 2016 04:08
Editor config
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
@damionvega
damionvega / FeedTableViewCell.swift
Last active January 20, 2016 05:13
iOS 9 / Swift Custom Dynamic TableViewCell height
//
// FeedTableViewCell.swift
// Created by Damion Nabarrete on 1/18/16.
//
import UIKit
import PureLayout
class FeedTableViewCell: UITableViewCell {
@damionvega
damionvega / install-iojs-in-10s.sh
Last active September 15, 2015 02:05 — forked from izolate/install-iojs-in-10s.sh
Install io.js on Ubuntu in 10 seconds (no nvm)
IOJS_VERSION=v0.0.0
IOJS_DIR=$HOME/.iojs
iojs_install() {
iojs_setup
iojs_download
iojs_assemble
iojs_teardown
}
import UIKit
protocol YelpRequestDelegate {
func getYelpData() -> AnyObject
func processYelpData(data: NSData) -> NSData
}
class YelpAPI {
var delegate: YelpRequestDelegate?
@damionvega
damionvega / gist:b95003522814eb8224f2
Last active February 17, 2016 18:59
How much should a framework creator charge for a tutorial video set?

#Preface I'll start this by saying I'm not a framework developer. In fact, I have little to no experience in open source software. If you asked me to recreate Lo-Dash I would deliver something laughable, surely. I'm just a guy who enjoys learning & building things, am always looking for better ways to build them and I've grown to enjoy writing JavaScript on the front and back end along my journey. It's a happy place to be.

Now, with this said, I'm sure there are factors I'm not taking into account when I think about the cash value of a video tutorial set- I'm merely going off of what I've seen and paid for in the past. It could be that I'm thinking about it all wrong, in which case I will see to rectify this situation.

#Initial seeking When I think about learning a new framework I first look through the docs and the github issues to see what's to be expected. Typically there's a learning curve which involves a week or two of 'getting into the mindset' to how things are done with that particular framework, s