Skip to content

Instantly share code, notes, and snippets.

@joaoamaral
joaoamaral / AnimalLocator.apxc
Created February 27, 2017 03:57
Salesforce Trailhead - Developer Intermediate - Apex Integration Services - Apex REST Callouts
public class AnimalLocator {
public static String getAnimalNameById (Integer id) {
String AnimalName = '';
Http http = new Http();
HttpRequest request = new HttpRequest();
request.setEndpoint('https://th-apex-http-callout.herokuapp.com/animals/'+id);
request.setMethod('GET');
HttpResponse response = http.send(request);
if (response.getStatusCode() == 200) {
@joaoamaral
joaoamaral / subtitle-extract.txt
Created February 21, 2016 10:25 — forked from bmaeser/subtitle-extract.txt
extract subtitles from *.mkv-files on osx
lines with $ are commands
### install mkvtoolnix:
$ brew install mkvtoolnix
### list content of the mkv-file:
$ mkvmerge -i mymoviefile.mkv
### what will give you: