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 / 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';
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
/* 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:

@dannyvassallo
dannyvassallo / mandolisschedule.js
Created June 30, 2016 16:51
check if availability is today
<script type="text/javascript">
<!--
var ESTdateTime = '',
calDate = '',
unavailableDays = [];
// GET EST DATE TIME
function convertToServerTimeZone(){
var offset = -5.0,
clientDate = new Date(),
utc = clientDate.getTime() + (clientDate.getTimezoneOffset() * 60000),
@dannyvassallo
dannyvassallo / README.md
Created June 24, 2016 20:47
remove wp version from your assets

#Remove WP Version from assets

Add this to your functions.php

If you can't update it, the My Custom Functions plugin by Arthur "Berserkr" Gareginyan will work even on a managed wordpress setup.

@dannyvassallo
dannyvassallo / gitignorenodemodules.md
Last active June 3, 2016 00:00
Because I keep reiterating this and it may help some students.

#Don't Add Your node_modules to git / github. ####Follow the instructions to not do this.

First and foremost you should be initializing NPM with npm init when you start a new node project. If you aren't doing this now, you need to start immediately.

Secondly, you should be installing your node packages for your project using npm install <package name> --save If you aren't doing this now, you need to start immediately.

Now -- Follow these steps to make git ignore your node_modules folder.