Is a good practice to inject a service whenever is possible.
Reading the code on the Drupal Class you can find the httpClient method:
/**
| -1|status|tag|no|name|duration|about | |
| 112||afx||luke vibert spiral staircase [future music competition] [afx remix]|5:05 | |
| 111||afx|19|[Slo]w early morning clissold sunrise|4:49| | |
| 110||afx|7|lsb [slo]|4:05| | |
| 109||afx|4|Red Calx[slo]|5:41| | |
| 108||Art|2|Dual Acid Ab6|4:36|94 ish, fuk knows | |
| 107||afx|5|How To Science 2 Ab6|4:51| | |
| 106||afx|4|how to science ab6|3:47| | |
| 105||afx|3|hollow alias ab6|2:14|ab6 |
| { | |
| "node": true, | |
| "browser": true, | |
| "esnext": true, | |
| "bitwise": true, | |
| "camelcase": true, | |
| "curly": true, | |
| "eqeqeq": true, | |
| "immed": true, | |
| "indent": 4, |
| // Run in console on the history page (http://trakt.tv/users/<username>/history) | |
| // Will remove all the items, on that page, from the watched history. | |
| $(".posters .grid-item").each(function(){ | |
| var $this = $(this); | |
| historyRemove($this, $this.data("history-id")); | |
| }) |
| /* | |
| For this to work you need to have already included FontAwesome (https://fortawesome.github.io/Font-Awesome/) in your <head>: | |
| <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css"> | |
| */ | |
| a[href$=".pdf"]:after { | |
| font-family: FontAwesome; | |
| content: "\00a0\f1c1"; /* 00a0 is a non-breaking space, f1c1 is the pdf symbol */ | |
| } |
| #------------------------------------------ | |
| # PANTHEON DEVELOPMENT WORKFLOW v1.01 | |
| # Using the Pantheon CLI (terminus) v0.71 | |
| #------------------------------------------ | |
| # Authenticate with Pantheon. The first step, most of the time. | |
| # This is a little insecure, as it lists your password here. But it's convenient. | |
| alias pdw-auth='terminus auth login YOURPANTHEONEMAILADDRESS --password=YOURPANTHEONPASSWORD' | |
| # Update your local Pantheon site aliases |
| // To turn on JS Aggregation | |
| drush vset preprocess_js 1 --yes | |
| // To clear all Cache | |
| drush cc all | |
| // To disable JS Aggregation | |
| drush vset preprocess_js 0 --yes | |
| // To clear cache of JS and CSS only |
| import urllib | |
| import os | |
| import tweepy | |
| import csv | |
| import time | |
| import PIL | |
| from PIL import Image, ImageOps | |
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...