This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
parser: 'babel-eslint', | |
env: { | |
browser: true, | |
es6: true, | |
node: true, | |
}, | |
extends: ['plugin:react/recommended', 'airbnb'], | |
globals: { | |
Atomics: 'readonly', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// has articles, apple only | |
// const endpoint = 'https://www.mocky.io/v2/5e84a71e300000a73fcf4653'; | |
// has articles, with samsung and apple | |
// const endpoint = 'https://www.mocky.io/v2/5e84dc35300000460a97ac9b'; | |
// const endpoint = 'https://www.mocky.io/v2/5e9f5d792d00005300cb7b63'; | |
// const coveragesEndpoint = 'https://www.mocky.io/v2/5e9f5d792d00005300cb7b63' | |
const endpoint = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const process = { | |
env: { | |
GATSBY_FUNCTION_ENDPOINT: 'https://trinity-agency-dev-preview.kevinfoerster.com/.netlify/functions/auth/' | |
} | |
} | |
const fetchToken = (username, password) => { | |
const url = process.env.GATSBY_FUNCTION_ENDPOINT; | |
return fetch(url, { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
saveIFS=$IFS | |
IFS=$(echo -en "\n\b") | |
FilesToCheck=$(find `pwd` -maxdepth 99 -name "*.pdf") | |
for i in $FilesToCheck | |
do | |
errCheck=$(pdffonts ${i} 2>&1 | tail -1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set file_path to POSIX path of theFile | |
set file_name to (do shell script "basename " & quoted form of file_path) | |
set file_name to do shell script "php -r 'echo trim(rawurlencode(" & "\"" & file_name & "" & "\"));'" | |
do shell script "echo 'http://dl.getdropbox.com/u/12345/'" & quoted form of file_name & "| pbcopy" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
require "rubygems" | |
require "mp3info" | |
filename = "Haendel--Messiah - Evry valley--.mp3" | |
content = Mp3Info.open(filename).tag.artist | |
Iconv.iconv('iso-8859-1', 'utf-8', content) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "rubygems" | |
require "mp3info" | |
filename = "Haendel--Messiah - Evry valley--.mp3" | |
content = Mp3Info.open(filename).tag | |
puts content | |
puts "Händel" |