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 / 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

# 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 / 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">
@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 <[email protected]>
@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 / 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 / README-Template.md
Created December 18, 2019 11:19 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@boogermann
boogermann / hash.c
Created May 23, 2020 20:28 — forked from tonious/hash.c
A quick hashtable implementation in c.
/* Read this comment first: https://gist.github.com/tonious/1377667#gistcomment-2277101
* 2017-12-05
*
* -- T.
*/
#define _XOPEN_SOURCE 500 /* Enable certain library functions (strdup) on linux. See feature_test_macros(7) */
#include <stdlib.h>
#include <stdio.h>
@boogermann
boogermann / input.scss
Created June 19, 2020 01:57 — forked from kaelig/input.scss
Different Shades of transparent colors with Sass
// Transparent Background
// From: http://stackoverflow.com/questions/6902944/sass-mixin-for-background-transparency-back-to-ie8
// Extend this class to save bytes
.transparent-background {
background-color: transparent;
zoom: 1;
}
// The mixin
@boogermann
boogermann / TrueColour.md
Created January 4, 2021 01:41 — forked from XVilka/TrueColour.md
True Colour (16 million colours) support in various terminal applications and terminals

Terminal Colors

There exists common confusion about terminal colors. This is what we have right now:

  • Plain ASCII
  • ANSI escape codes: 16 color codes with bold/italic and background
  • 256 color palette: 216 colors + 16 ANSI + 24 gray (colors are 24-bit)
  • 24-bit true color: "888" colors (aka 16 milion)