Skip to content

Instantly share code, notes, and snippets.

View boogermann's full-sized avatar
🎮
Creating Rætro

Marcus Andrade boogermann

🎮
Creating Rætro
View GitHub Profile
@boogermann
boogermann / NestedBoards.vue
Created March 9, 2017 07:59 — forked from alexqhj/NestedBoards.vue
Vue Draggable
<template>
<draggable :list="children" v-if="children" :options="{ group: { name: parentId },
chosenClass: 'draggable--dragging',
handle: '.draggable__handle',
dataIdAttr: 'data-id',
}" @update="onUpdate" class="collapse" :id="'toggle-'+parentId">
<ul v-for="child in children" :data-id="child.id" class="draggable">
<li class="db-forum-board">
<span class="draggable__handle"><i class="fa fa-bars"></i></span>
<div class="db-forum-board__title">
# encoding: utf8 1,1 Top# encoding: utf8
import argparse
from datetime import datetime
import json
from random import randint
import requests
import sys
from time import sleep
@boogermann
boogermann / tinder-api-documentation.md
Created January 15, 2017 21:04 — forked from rtt/tinder-api-documentation.md
Tinder API Documentation

Tinder API documentation

http://rsty.org/

I've sniffed most of the Tinder API to see how it works. You can use this to create bots (etc) very trivially. Some example python bot code is here -> https://gist.github.com/rtt/5a2e0cfa638c938cca59 (horribly quick and dirty, you've been warned!)

Note: this was written in April/May 2014 and the API may have changed since. I have nothing to do with Tinder, nor their API, and I do not offer any support for anything you may build on top of this

API Details

@boogermann
boogermann / SecureSessionHandler.php
Created December 12, 2016 04:24 — forked from eddmann/SecureSessionHandler.php
Secure session handler implementation.
<?php
class SecureSessionHandler extends SessionHandler {
protected $key, $name, $cookie;
public function __construct($key, $name = 'MY_SESSION', $cookie = [])
{
$this->key = $key;
$this->name = $name;
@boogermann
boogermann / SassMeister-input.scss
Created September 14, 2016 06:07
Generated by SassMeister.com.
// ----
// libsass (v3.3.2)
// ----
/* Old */
@mixin link($link, $hover: $link, $active: $link, $focus: $link, $visited: $link) {
$sameProps: ();
& {
@if $hover != $link {
&:hover {
@boogermann
boogermann / SassMeister-input.scss
Created September 14, 2016 06:07
Generated by SassMeister.com.
// ----
// Sass (v3.4.21)
// Compass (v1.0.3)
// ----
@mixin responsive-calc($columns: 2, $under: 480px) {
$pre-computed-calc: #{($under * ($under / 1px))} - #{(100% * ($under / 1px))};
display: inline-block;
min-width: ($under / $columns);
@boogermann
boogermann / SassMeister-input.scss
Created September 14, 2016 06:07 — forked from KittyGiraudel/SassMeister-input.scss
Generated by SassMeister.com.
// ----
// Sass (v3.4.9)
// Compass (v1.0.1)
// ----
@function is-number($value) {
@return type-of($value) == 'number';
}
@function is-time($value) {
/// This function is exactly like `map-get` except it goes deeper.
/// You pass the map as first argument and then an unlimited number of keys to be accessed.
/// If a key cannot be reached, the function aborts and returns `null`.
@function map-deep-get($map, $keys...) {
@each $key in $keys {
$map: map-get($map, $key);
@if (type-of($map) == 'null') { @return $map; }
}
@boogermann
boogermann / phpstorm.bat
Last active June 19, 2023 17:11 — forked from amnuts/phpstorm.bat
Add context menu to Windows 10 to open file/folder in PhpStorm
@echo off
SET PhpStormPath=C:\Program Files (x86)\JetBrains\PhpStorm 10.0.3\bin\PhpStorm.exe
echo Adding file entries
@reg add "HKEY_CLASSES_ROOT\*\shell\Open in PhpStorm" /t REG_SZ /v "" /d "Open in PhpStorm" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open in PhpStorm" /t REG_EXPAND_SZ /v "Icon" /d "%PhpStormPath%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open in PhpStorm\command" /t REG_SZ /v "" /d "%PhpStormPath% \"%%1\"" /f
echo Adding folder entries
@boogermann
boogermann / add-blog-id.php
Created April 2, 2016 09:29 — forked from bueltge/add-blog-id.php
View Blog and User ID in WordPress Multisite
<?php
/**
* Plugin Name: Add Blog and User ID on Network
* Plugin URI: http://wpengineer.com/2188/view-blog-id-in-wordpress-multisite/
* Description: View Blog and User ID in WordPress Multisite
* Version: 1.0.0
* Author: Frank Bültge
* Author URI: http://bueltge.de
* License: GPLv3
*/