Skip to content

Instantly share code, notes, and snippets.

View dyspop's full-sized avatar
🇹🇭
SaaSy

Dan Black dyspop

🇹🇭
SaaSy
View GitHub Profile
@julianrubisch
julianrubisch / index.html
Last active March 9, 2023 02:09
Simple stimulusjs parallax controller using https://simpleparallax.com/
<img src="img/some-nice-photo.jpg" data-controller="parallax" />
@j1mc
j1mc / bulma-sass-scss.rb
Last active August 14, 2023 05:04 — forked from DanyHenriquez/bulma-sass-scss.rb
Convert bulma from sass to scss
#!/usr/bin/env ruby
require 'tmpdir'
require 'fileutils'
dir = Dir.tmpdir()
if File.directory?("#{dir}/bulma")
FileUtils.remove_dir("#{dir}/bulma")
end
@stefanschmidt
stefanschmidt / fix-homebrew-owner-perms.sh
Created April 12, 2016 21:19
Fix ownership and permissions of a multi-user Homebrew installation
# fix owner of files and folders recursively
sudo chown -vR $(whoami) /usr/local /opt/homebrew-cask /Library/Caches/Homebrew
# fix read/write permission of files and folders recursively
chmod -vR ug+rw /usr/local /opt/homebrew-cask /Library/Caches/Homebrew
# fix execute permission of folders recursively
find /usr/local /opt/homebrew-cask /Library/Caches/Homebrew -type d -exec chmod -v ug+x {} +
@mattkenefick
mattkenefick / gist:7e565607c9656ad81d4d
Last active March 13, 2022 10:39
Bash CRUD (Get,Post,Put,Delete) Commands
# Polymer Mallard - Bash CRUD
#
# Put the following into your ~/.bash_rc or ~/.bash_profile
# Requires Python, cURL
function pmCrudRequest {
printf " \n \e[1;33m$method\e[0m from \e[1;33m$url\e[0m \n \n"
printf " \n \e[0;32m"
echo "$response" | python -m json.tool
printf "\e[0m"
@cuibonobo
cuibonobo / kivent_install.md
Created September 18, 2014 02:00
Installing KivEnt on Mac OS X.

Tested on Mac OS X 10.8.5 and 10.9.3.

Not for the faint of heart. Before we begin, you will need to install XQuartz, Homebrew, and virtualenv.

I'm using virtualenv to isolate your global system settings from the KivEnt installation because it's still under heavy development and it's very messy. We'll also be using the virtual environment folder to install Kivy, Cymunk, and KivEnt without needing to add them to your repository or your .gitignore file.

Now follow these steps carefully and you should be up and running:

  • Gain access to homebrew-headonly with brew tap homebrew/headonly. You may want to do a brew update for good measure.
  • SMPEG was moved to homebrew-headonly, so install it with brew install --HEAD smpeg
@bsweger
bsweger / useful_pandas_snippets.md
Last active April 19, 2024 18:04
Useful Pandas Snippets

Useful Pandas Snippets

A personal diary of DataFrame munging over the years.

Data Types and Conversion

Convert Series datatype to numeric (will error if column has non-numeric values)
(h/t @makmanalp)

@r043v
r043v / gist:11289875
Created April 25, 2014 13:38
ekomi api
<?php
// ¢2014 noferi mickaël, under creative common by-nc-sa 3.0
define('ekomiNumber','*****');
define('ekomiInterface','*****');
define('ekomiInterfacePass','***********************');
define('ekomiUrl','http://api.ekomi.de/v2/');
@devxoul
devxoul / wtf_required_if.py
Last active March 13, 2022 00:13
WTForms `RequiredIf` validator.
class RequiredIf(object):
"""Validates field conditionally.
Usage::
login_method = StringField('', [AnyOf(['email', 'facebook'])])
email = StringField('', [RequiredIf(login_method='email')])
password = StringField('', [RequiredIf(login_method='email')])
facebook_token = StringField('', [RequiredIf(login_method='facebook')])
"""
@zenorocha
zenorocha / README.md
Last active May 28, 2024 08:23
A template for Github READMEs (Markdown) + Sublime Snippet

Project Name

TODO: Write a project description

Installation

TODO: Describe the installation process

Usage