- 1:30 "Slow" https://media.giphy.com/media/JPsNAHnmHtlKLJ5z0e/giphy.gif
- 0:40 "Running" https://media.giphy.com/media/23ml0TAHTJ3hw3TPVX/giphy.gif
- 1:30 "Slow" https://media.giphy.com/media/JPsNAHnmHtlKLJ5z0e/giphy.gif
- 0:40 "Running" https://media.giphy.com/media/23ml0TAHTJ3hw3TPVX/giphy.gif
- 1:30 "Slow" https://media.giphy.com/media/JPsNAHnmHtlKLJ5z0e/giphy.gif
- max "Burpees" https://media.giphy.com/media/23hPPMRgPxbNBlPQe3/giphy.gif
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
package util | |
import play.api.mvc._ | |
import play.api.Logger | |
object AuthFilter extends Filter { | |
val accessParam = "access_key" | |
val accessKey = "secret" | |
override def apply(next: RequestHeader => Result)(request: RequestHeader): Result = { |
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
import org.codehaus.jackson.map.ObjectMapper; | |
public class HttpUtils { | |
private static final int SERVER_PORT = 80; | |
private static final String SERVER_IP = "myapp.appspot.com"; // use 10.0.2.2 for emulator | |
private static HttpUtils instance = new HttpUtils(); | |
private DefaultHttpClient client; | |
private ResponseHandler<String> responseHandler; |
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
public final class TXUtils { | |
public static final Logger log = Logger.getLogger(TXUtils.class.getName()); | |
public interface Transaction<T> { | |
T doit(EntityManager em); | |
} | |
private static final EntityManagerFactory emfInstance = Persistence | |
.createEntityManagerFactory("my-persistence-unit"); |
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
// you also have to add the JS from the URL http://www.googleadservices.com/pagead/conversion_async.js in the header, | |
// so the function window.google_trackConversion is available | |
angular.module("lrSiteApp").config(function ($httpProvider) { | |
var httpinterceptor = function () { | |
return { | |
response: function (result) { | |
var isCreateReq = result.config.url.match(/site-users\/create/) !== null; | |
if (isCreateReq) { | |
window.google_trackConversion({ |
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
from gooey import Gooey, GooeyParser | |
@Gooey(target="ffmpeg", program_name='QuickTime To Gif v1.0', suppress_gooey_flag=True) | |
def main(): | |
parser = GooeyParser(description="Convert QuickTime movies to GIFs") | |
ffmpeg = parser.add_argument_group('Frame Extraction Util') | |
ffmpeg.add_argument('-i', | |
metavar='Input Movie', | |
help='The movie that you want to convert to a GIF', | |
widget='FileChooser') |
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
alias az='docker run -it -v ${HOME}/.azure:/root/.azure -v ${HOME}/.ssh:/root/.ssh --entrypoint "/usr/local/bin/az" microsoft/azure-cli:latest $@' |
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
import React from 'react'; | |
import ReactDOM from 'react-dom'; | |
import { createStaticURL } from '@splunk/splunk-utils/url'; | |
import $script from 'scriptjs'; | |
function getLayoutApi(callback) { | |
const url = createStaticURL('build/api/layout.js'); | |
if (window.requirejs) { |
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
import React, { useState } from 'react'; | |
import Table from '@splunk/visualizations/Table'; | |
import { SplunkSearch } from '@splunk/datasources'; | |
const DSTable = () => { | |
const [dsResult, setDsResult] = useState(null); | |
const ds = new SplunkSearch({ | |
query: '| inputlookup example_kv', | |
queryParameters: { |
OlderNewer