Skip to content

Instantly share code, notes, and snippets.

View dannyvassallo's full-sized avatar

Dan Vassallo dannyvassallo

View GitHub Profile
@dannyvassallo
dannyvassallo / mistel-barocco-md600.md
Last active March 23, 2021 18:10 — forked from jdhom/mistel-barocco-md600.md
Mistel Barocco MD600 Programming and Firmware

Mistel Barocco MD600 RGB Split Keyboard

keyboard firmware

What I remap

CapsLock is RCTRL    ... i do this on all keyboards
FN CapsLock is RCTRL ... was accidently toggling capslock with fn+capslock
LCTRL is FN ... arrow/pg/home on right half, FN+arrow I now prefer on ALL keyboards... so nice
@dannyvassallo
dannyvassallo / 20160216211105_create_images.rb
Created February 16, 2016 21:32
Use tinymce-rails & tinymce-rails-imageupload with carrierwave & fog
# db/migrate/filename.rb
# generate with >> rails g model image alt:string hint:string file:string
class CreateImages < ActiveRecord::Migration[5.0]
def change
create_table :images do |t|
t.string :alt
t.string :hint
t.string :file
@dannyvassallo
dannyvassallo / cloudSettings
Last active January 10, 2019 16:25 — forked from StevePotter/cloudSettings
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-01-08T16:02:56.632Z","extensionVersion":"v3.2.4"}
@dannyvassallo
dannyvassallo / README.md
Last active April 27, 2017 20:50
Get all postgres functions and triggers

List all functions

SELECT  proname, prosrc
FROM    pg_catalog.pg_namespace n
JOIN    pg_catalog.pg_proc p
ON      pronamespace = n.oid
WHERE   nspname = 'public';
@dannyvassallo
dannyvassallo / _materializecss-rails-confirm.coffee
Last active November 24, 2016 00:29
Replace Rails 4 confirmation/prompts with a toast message from Dogfalo Materialize CSS. Regular repo - https://github.com/Dogfalo/materialize Sass Gem - https://github.com/mkhairi/materialize-sass Website - http://materializecss.com/
$ ->
$.rails.allowAction = (link) ->
return true unless link.attr("data-confirm")
$.rails.showConfirmDialog link
false
$.rails.confirmed = (link) ->
link.removeAttr "data-confirm"
link.trigger "click.rails"
Intern$ ls ~/.cocoapods/repos/master/Specs/
1PasswordExtension
1PasswordExtensionHaha
25519
320Categories
500px-iOS-api
7blur
A
A2DynamicDelegate
A2StoryboardSegueContext
require "csv"
require "insta_scrape"
def appendRowToCsv(row)
CSV.open("instagram_posts.csv", "a+",) do |csv|
csv << row
end
end
# create headers
<!DOCTYPE html>
<html>
<head>
<link href="http://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet" type="text/css">
<link href="http://fonts.googleapis.com/css?family=Source+Sans+Pro" rel="stylesheet" type="text/css">
<title></title>
</head>
<body>
<div>
<div id="wrapper" style="width: 100%; position: absolute; top: 0; background-image: url('https://s3.amazonaws.com/myfangate.com/vydiaemail/repeatingbg.jpg'); background-repeat: repeat; overflow-x: hidden;">
/* This work is licensed under Creative Commons GNU LGPL License.
License: http://creativecommons.org/licenses/LGPL/2.1/
Version: 0.9
Author: Stefan Goessner/2006
Web: http://goessner.net/
*/
function xml2json(xml, tab) {
var X = {
toObj: function(xml) {
@dannyvassallo
dannyvassallo / alias.md
Last active August 17, 2016 19:08
create a permanent alias

#Permanent alias

In terminal run the following (pick your poison, editors are separated by the 'or' operator):

nano ~/.bash_profile || subl ~/.bash_profile || atom ~/.bash_profile

Add the following line to your .bash_profile but change goto_sites and the path to your own: