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
{ | |
"name": "Staff App", | |
"description": "Internal buttons and controls only for staff", | |
"author": "Weiyuan Liu", | |
"version": "0.0.1", | |
"manifest_version": 1, | |
"background": { | |
"scripts" : [ | |
"build/browser-action.js", | |
"build/context-menu.js" |
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
'use-strict' | |
import CONSTANTS from 'scripts/constants/Constants' | |
function updateIconWith({ tabId, url }){ | |
if(url && url.match(CONSTANTS.BROWSER_ICON_URL_REGEX)){ | |
chrome.browserAction.setIcon({ path: 'public/images/logos/staff-32.png', tabId: tabId}); | |
} else { | |
chrome.browserAction.setIcon({ path: 'public/images/logos/staff-32-faded.png', tabId: tabId}); | |
} |
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
package example | |
import ( | |
"context" | |
"google.golang.org/grpc" | |
"github.com/gorilla/mux" | |
"github.com/go-kit/kit/endpoint" | |
"github.com/exampleproject/httplogic" | |
"github.com/exampleproject/grpclogic" | |
gs "github.com/exampleproject/grpcschema" |
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
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: nginx-deployment | |
labels: | |
app: nginx | |
spec: | |
replicas: 3 # This can be changed any time as config and pods will scale up with the change | |
selector: | |
matchLabels: |
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
{# Note that the following properties can be passed with running deployment manager #} | |
{# setting up deployment manager can be as simple as follows: #} | |
{# `gcloud deployment-manager deployments create deployment --template cluster.jinja --properties "ADD PROPERTIES FOR BELOW CONFIG HERE" ` #} | |
{% set CLUSTER_NAME = properties['clusterName'] %} | |
{% set REGION = properties['region'] %} | |
{% set NODE_POOL_NAME = properties['nodePoolName'] %} | |
{% set NODE_POOL_MIN = properties['nodePoolMinCount'] %} |
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
<html> | |
<head></head> | |
<body> | |
<!-- Script loading, parsing and execution after html content below | |
is rendered, or what is known as "DOMContentLoaded" event --> | |
<script src="script_one.js" defer="defer"></script> | |
<!-- Same as above, except it maintains order of execution after | |
"script_one" --> | |
<script src="script_two.js" defer="defer"></script> |
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
<html> | |
<head></head> | |
<body> | |
<!-- Using the lazysizes library, we can define a low | |
res image to load, and asynchronously load | |
a image appropriate to the user's screen size --> | |
<img | |
class="lazyload" | |
src="low_res.jpg" | |
data-src="low_res.jpg" |
OlderNewer