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
const google = require('googleapis').google; | |
const compute = google.compute('v1'); | |
const rp = require('request-promise'); | |
const md5 = require('md5'); | |
const CONFIG = { | |
CF_EMAIL: 'john@example.com', // change me | |
CF_KEY: '<cloudflare_key>', // change me | |
CF_ACCOUNT_ID: '<cloudflare_account_id>', // change me | |
CF_NAMESPACE: '<namespace_id>', // change me |
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
const google = require('googleapis').google; | |
const compute = google.compute('v1'); | |
const rp = require('request-promise'); | |
const CONFIG = { | |
CF_EMAIL: 'john@example.com', // change me | |
CF_KEY: 'abcde', // change me | |
CF_ACCOUNT_ID: 'abcde', // change me | |
CF_NAMESPACE: 'abcde', // change me | |
G_PROJECT_ID: 'project1', // change me |
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
addEventListener('fetch', event => { | |
event.respondWith(handleRequest(event.request)) | |
}) | |
function getRandomInt(min, max) { | |
return Math.floor(Math.random() * (max - min + 1)) + min; | |
} | |
function getServer(servers) { | |
const index = getRandomInt(0, servers.length - 1); |
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
let isDone: boolean = false; // bool | |
let list: number[] = [1, 2, 3]; // array | |
enum Color {Red = 1, Green = 2, Blue = 4}; // enum with values | |
enum Color {Red, Green, Blue}; // enum without values | |
function test(var1?: string, var2: number): number { // var1 is optional, var2 is not, var1 can be null || undefined, and return a number | |
return 1; |
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
let isDone: boolean = false; |
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
var path = require('path'); | |
const HtmlWebpackPlugin = require('html-webpack-plugin') | |
module.exports = { | |
entry: './app.tsx', | |
context: path.join(__dirname, '/src'), | |
output: { | |
filename: 'bundle.js', | |
path: path.join(__dirname, 'dist'), | |
}, |
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
<div class="bar bar--positive"> | |
<div class="bar__middle"></div> | |
<div class="bar__content"> | |
<div class="bar__negative"></div> | |
<div class="bar__positive"></div> | |
</div> | |
<div class="bar__footer"> | |
<div class="bar__footer-left"> | |
Negative (0.8) | |
</div> |
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
.aa{ | |
&__hallo{ | |
color: red; | |
} | |
} |
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
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,600' rel='stylesheet' type='text/css'> | |
<main> | |
<section class="cart"> | |
<div class="cart__top"> | |
<ul class="cart__bubbles"> | |
<li></li> | |
<li></li> | |
<li></li> | |
<li></li> | |
<li></li> |
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
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,600' rel='stylesheet' type='text/css'> | |
<main> | |
<section class="cart"> | |
<div class="cart__top"> | |
<ul class="cart__bubbles"> | |
<li></li> | |
<li></li> | |
<li></li> | |
<li></li> | |
<li></li> |
NewerOlder