- Goto any tracklist page
- View Menu > Developer Tools
- Paste this entire
cue.jsand hit enter. It may prompt to allow downloads. - The mp3 file must be in the same folder AND named the same as the cue file (without extension).
For example:
| package main | |
| import ( | |
| "fmt" | |
| "strings" | |
| "sync" | |
| "time" | |
| ) | |
| type ChannelPerf struct { |
We Gophers, love table-driven-tests, it makes our unittesting structured, and makes it easy to add different test cases with ease.
Let’s create our table driven test, for convenience, I chose to use t.Log as the test function.
Notice that we don't have any assertion in this test, it is not needed to for the demonstration.
func TestTLog(t *testing.T) {
t.Parallel()| func ComputeHmac256(message string, secret string) string { | |
| key := []byte(secret) | |
| h := hmac.New(sha256.New, key) | |
| h.Write([]byte(message)) | |
| return base64.StdEncoding.EncodeToString(h.Sum(nil)) | |
| } |
Dockerfile that is based on your production image and
simply install xdebug into it. Exemple:FROM php:5
RUN yes | pecl install xdebug \
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
| sudo: required #is required to use docker service in travis | |
| language: php #can be any language, just php for example | |
| services: | |
| - docker # required, but travis uses older version of docker :( | |
| install: | |
| - echo "install nothing!" # put your normal pre-testing installs here |
| #!/bin/bash | |
| bucket=$1 | |
| set -e | |
| echo "Removing all versions from $bucket" | |
| versions=`aws s3api list-object-versions --bucket $bucket |jq '.Versions'` | |
| markers=`aws s3api list-object-versions --bucket $bucket |jq '.DeleteMarkers'` |
| httpClient.DefaultRequestHeaders.Authorization = | |
| new AuthenticationHeaderValue( | |
| "Basic", | |
| Convert.ToBase64String( | |
| System.Text.ASCIIEncoding.ASCII.GetBytes( | |
| string.Format("{0}:{1}", username, password)))); |
| // This is the equivalent of the old waitsFor/runs syntax | |
| // which was removed from Jasmine 2 | |
| waitsForAndRuns = function(escapeFunction, runFunction, escapeTime) { | |
| // check the escapeFunction every millisecond so as soon as it is met we can escape the function | |
| var interval = setInterval(function() { | |
| if (escapeFunction()) { | |
| clearMe(); | |
| runFunction(); | |
| } | |
| }, 1); |
I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\