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 / api.go
Created February 4, 2019 07:21 — forked from bitristan/api.go
Send get and post request by golang
//发送get请求
func get(url string) string {
response, err := http.Get(url)
if err != nil {
fmt.Printf("%s", err)
os.Exit(1)
} else {
defer response.Body.Close()
contents, err := ioutil.ReadAll(response.Body)
if err != nil {
@boogermann
boogermann / .gitignore
Created December 2, 2017 20:27 — forked from jonathandixon/.gitignore
Cordova CLI project .gitignore and helper script. Useful when you don't want to commit the platforms and plugins directories to version control. http://stackoverflow.com/q/17911204/417568
platforms/
plugins/
@boogermann
boogermann / url_slug.js
Created September 11, 2017 20:29 — forked from sgmurphy/url_slug.js
URL Slugs in Javascript (with UTF-8 and Transliteration Support)
/**
* Create a web friendly URL slug from a string.
*
* Requires XRegExp (http://xregexp.com) with unicode add-ons for UTF-8 support.
*
* Although supported, transliteration is discouraged because
* 1) most web browsers support UTF-8 characters in URLs
* 2) transliteration causes a loss of information
*
* @author Sean Murphy <sean@iamseanmurphy.com>
@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) {