Skip to content

Instantly share code, notes, and snippets.

View zunjae's full-sized avatar
🤡
clowning

ZUNJAE zunjae

🤡
clowning
  • Mayo
View GitHub Profile
@davidteather
davidteather / userPosts.json
Created May 26, 2019 16:49
TikTok userPosts example
{
"statusCode": 0,
"body": {
"pageState": {
"regionAppId": 1233,
"os": "windows",
"region": "US",
"baseURL": "m.tiktok.com",
"appType": "m",
"fullUrl": "https://m.tiktok.com/share/item/list?id=6614616633741737990&type=1&count=48&minCursor=0&maxCursor=0&_signature=reEdRhAX8RqkrWdTZLFJvq3hHV"
@metalwihen
metalwihen / fileprovider.md
Last active November 21, 2019 10:43
Android N Changes - FileProvider

Changes to be made in AndroidManifest.xml

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<provider
    android:name="android.support.v4.content.FileProvider"
    android:authorities="${applicationId}.provider"
@dahlia
dahlia / Dockerfile
Last active March 13, 2021 08:10
Running X11 GUI apps through Docker + XQuartz on macOS
FROM ubuntu:17.10
# We don't optimize the size of fslayer here...
RUN apt-get update
RUN apt-get install -y \
software-properties-common \
ttf-ubuntu-font-family \
fonts-ubuntu-title \
fonts-ubuntu-font-family-console
RUN add-apt-repository -y \
@matthewzring
matthewzring / markdown-text-101.md
Last active May 11, 2024 06:04
A guide to Markdown on Discord.

Markdown Text 101

Want to inject some flavor into your everyday text chat? You're in luck! Discord uses Markdown, a simple plain text formatting system that'll help you make your sentences stand out. Here's how to do it! Just add a few characters before & after your desired text to change your text! I'll show you some examples...

What this guide covers:

@EvieePy
EvieePy / bot_example.py
Last active April 24, 2024 09:30
A Cogs Example for the rewrite version of - discord.py
import discord
from discord.ext import commands
import sys, traceback
"""This is a multi file example showcasing many features of the command extension and the use of cogs.
These are examples only and are not intended to be used as a fully functioning bot. Rather they should give you a basic
understanding and platform for creating your own bot.
These examples make use of Python 3.6.2 and the rewrite version on the lib.
@maxhanglin
maxhanglin / eureka_swift_3:searchable_push_row.swift
Created April 13, 2017 16:20
Searchable Push Row for Eureka
import Eureka
open class _SearchablePushRow<T: Equatable, Cell: CellType> : TableSelectorRow<Cell, SearchableViewController<T>> where Cell: BaseCell, Cell: TypedCellType, Cell.Value == T, T: SearchableItem, T: CustomStringConvertible {
public required init(tag: String?) {
super.init(tag: tag)
onCreateControllerCallback = { [weak self] _ in
let controller = SearchableViewController<T>()
controller.searchPlaceholder = self?.searchPlaceholder
return controller
@nknapp
nknapp / Dockerfile
Created October 30, 2016 20:15
Traefik setup as reverse-proxy with docker and letsencrypt
FROM traefik:camembert
ADD traefik.toml .
EXPOSE 80
EXPOSE 8080
EXPOSE 443
@jagrosh
jagrosh / Github Webhook Tutorial.md
Last active May 11, 2024 10:47
Simple Github -> Discord webhook

Step 1 - Make a Discord Webhook

  1. Find the Discord channel in which you would like to send commits and other updates

  2. In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe! WebhookDiscord

Step 2 - Set up the webhook on Github

  1. Navigate to your repository on Github, and open the Settings Settings
@raghothams
raghothams / server.py
Created February 22, 2016 10:10
Flask request header decorator
from functools import wraps
from flask import Flask, request
app = Flask(__name__)
key = "ya29.bwLu0ruxXdXe_RMOSYgfiCPORNMHLkf9rCDmV1rKtWu90TuF1d8B2SmdUlrjeOWNYThkgMM"
def secure(f):
@wraps(f)
def check_authorization(*args, **kwargs):
if request.headers.get("Authorization") == key:
return f()
@jakubkinst
jakubkinst / ThemedSnackbar.java
Created June 25, 2015 09:26
Android Snackbar with background color themed by colorAccent attribute of current theme
package cz.kinst.jakub.themedsnackbar;
import android.content.Context;
import android.support.design.widget.Snackbar;
import android.util.TypedValue;
import android.view.View;
/**
* Created by jakubkinst on 25/06/15.