Skip to content

Instantly share code, notes, and snippets.

View qls0ulp's full-sized avatar
🏠
Working from home

tt-g qls0ulp

🏠
Working from home
View GitHub Profile
@lmarkus
lmarkus / README.MD
Last active June 6, 2024 17:15
Extracting / Exporting custom emoji from Slack

Extracting Emoji From Slack!

Slack doesn't provide an easy way to extract custom emoji from a team. (Especially teams with thousands of custom emoji) This Gist walks you through a relatively simple approach to get your emoji out.

If you're an admin of your own team, you can get the list of emoji directly using this API: https://api.slack.com/methods/emoji.list. Once you have it, skip to Step 3

HOWEVER! This gist is intended for people who don't have admin access, nor access tokens for using that list.

Follow along...

@domenic
domenic / not-bad-code.js
Last active July 4, 2020 09:07
Avoiding explicit promise construction antipattern
function getUserDetail(username) {
if (userCache[username]) {
return Promise.resolve(userCache[username]);
}
// Use the fetch API to get the information
return fetch('users/' + username + '.json')
.then(function(result) {
userCache[username] = result;
return result;
@heiswayi
heiswayi / markdown-cheatsheet.md
Last active October 6, 2022 18:34
Ultimate Markdown Cheatsheet, based on GitHub-flavored Markdown

Typography

Headings

Headings from H1 to H6 are constructed with a # for each level.

# H1 Heading
## H2 Heading
### H3 Heading
@pH-7
pH-7 / udemy-full-discount.py
Last active December 6, 2022 12:51
Get all Udemy Courses with 100% off Coupons thanks to growthcoupon.com & Importer.io
##########
##
## Get all Udemy Courses with 100% off Coupons thanks to growthcoupon.com & Importer.io
##
##########
from json import loads
from bs4 import BeautifulSoup
import mechanize
@octalmage
octalmage / play_music.h
Created December 8, 2014 18:53
Google Music Class Dump - iOS
/*
* Generated by class-dump 3.1.2.
*
* class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2007 by Steve Nygard.
*/
struct CATransform3D {
float _field1;
float _field2;
float _field3;
@AaronMT
AaronMT / sites.csv
Last active June 12, 2019 00:23
$> monkeyrunner sites.py sites.csv
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
"http://google.com"
"http://facebook.com"
"http://youtube.com"
"http://yahoo.com"
"http://baidu.com"
"http://wikipedia.org"
"http://live.com"
"http://qq.com"
"http://amazon.com"
"http://twitter.com"
@willurd
willurd / web-servers.md
Last active June 26, 2024 11:15
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@chadwickdonald
chadwickdonald / index.html
Created August 10, 2012 21:13
d3 bar chart
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Per_month_graph</title>
<script src="http://d3js.org/d3.v2.js"></script>
</head>
<body>