This file contains hidden or 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 | |
# To start using a project or working for a given client I'll type the client or project name, and I'll have an | |
# alias defined in .profile to run this (so that I actually end up in the directory that this file cd's to) | |
# alias 'acme-widget=source $HOME/bin/acme-widget' | |
CLIENT_ROOT=$HOME/clients/acme | |
export GOPATH=$CLIENT_ROOT | |
cd $GOPATH/src/widget | |
# widget is the project directory as cloned from source control |
This file contains hidden or 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
declare module "react-async" { | |
import {ComponentType, ReactNode} from "react"; | |
import * as React from "react"; | |
export interface LoadingProps<V> { | |
/** Show only on initial load (data is undefined) */ | |
initial?: boolean; | |
/** Function (passing state) or React node */ | |
children: ReactNode | ((state: State<V>) => ReactNode); |
This file contains hidden or 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 class ConfigurableAccessTokenConverter extends DefaultAccessTokenConverter { | |
public ConfigurableAccessTokenConverter(String usernameAttributeKey) { | |
super(); | |
setUserTokenConverter(new DefaultUserAuthenticationConverter() { | |
@Override | |
public Authentication extractAuthentication(Map<String, ?> map) { | |
if (map.containsKey(usernameAttributeKey)) { |
This file contains hidden or 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 * as React from "react"; | |
import {CardSource, compareCards, Card} from "./cards"; | |
import {EventCard as EventCardObj, EventCardGroup, TaskCard as TaskCardObj, TaskCardGroup} from "../calendar/cards"; | |
import {ReferralCard as ReferralCardObj, ReferralCardGroup} from "../referral/cards"; | |
import ReferralCard = require("./ReferralCard"); | |
import EventCard = require("./EventCard"); | |
import CardGroup = require("./CardGroup"); | |
import TaskCard = require("./TaskCard"); | |
import {ReloadEvent} from "../common/events"; |
This file contains hidden or 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
files: ["**/__tests__/**/*", "**/test/**/*", "**/*.(test|spec).*", "**/*Spec.*", "!**/node_modules/**/*"] | |
script: "./node_modules/jasmine-node/bin/jasmine-node" | |
lineRegExp: '^\s*(?:test|it|describe)(?:\.[^(]+)?\((?:"|''){1}([^"'']+)' | |
scriptArgs: ["${file}", "--verbose", "--color", "--forceexit", "--junitreport", "--captureExceptions"] | |
rcName: "${fileNameWithoutExt}.${0}" |
This file contains hidden or 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
wget https://dl.google.com/android/repository/tools_r25.2.3-linux.zip | |
mkdir ~/apps/android-sdk | |
gunzip tools*linux.zip ~/apps/android-sdk | |
~/apps/android-sdk/tools/bin/sdkmanager --list | |
~/apps/android-sdk/tools/bin/sdkmanager "build-tools;25.0.2" |
This file contains hidden or 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
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" | |
xmlns:th="http://www.thymeleaf.org"> | |
<head> | |
<title>Good Thymes Virtual Grocery</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<link rel="stylesheet" type="text/css" media="all" | |
href="../../../css/gtvg.css" th:href="@{/css/gtvg.css}" /> |
NewerOlder