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
W3NvbmddCnB1cnBvc2U9Ik1ha2UgeW91IHVuZGVyc3RhbmQiCgpseXJpY3MgPSAiIiIKU3RyYW5nZXIgdG8gTG92ZToKIFlvdTogZmFsc2UKIE1lOiBmYWxzZQpSdWxlcyBLbm93bjoKIFlvdTogdHJ1ZQogTWU6IHRydWUKRnVsbCBDb21taXRtZW50OgogWW91OiB+CiBNZToKICAgU3RhdHVzOiAidGhpbmtpbmciCiBPdGhlciBHdXlzOgogICAtIFN0YXR1czogIm5vdCB0aGlua2luZyIKICAgLSBTdGF0dXM6ICJub3QgdGhpbmtpbmciCiAgIC0gU3RhdHVzOiAibm90IHRoaW5raW5nIgpDb21tYW5kczoKICB0ZWxsRmVlbGluZ3M6ICIKZWNobyBcXFwiPFJpY2s+CiAgPEFzdGxleT4KICAgIDxcXFxcIVtDREFUQVsKICAgICAgICB7XFxcXFxcXCJuZXZlciBnb25uYVxcXFxcXFwiOltcXFxcXFxcImdpdmUgeW91IHVwXFxcXFxcXCIsXFxcXFxcXCJsZXQgeW91IGRvd25cXFxcXFxcIixcXFxcXFxcInJ1biBhcm91bmQgYW5kIGRlc2VydCB5b3VcXFxcXFxcIixcXFxcXFxcIm1ha2UgeW91IGNyeVxcXFxcXFwiLFxcXFxcXFwic2F5IGdvb2RieWVcXFxcXFxcIixcXFxcXFxcInRlbGwgYSBsaWUgYW5kIGh1cnQgeW91XFxcXFxcXCJdfQogICAgICAgIF1dPgogIDwvQXN0bGV5Pgo8L1JpY2s+XFxcIiB8IG1ha2UgLWYgZ251IHVuZGVyc3RhbmQiCiIiIg== |
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
{ | |
"openapi": "3.0.0", | |
"paths": { | |
"/listings": { | |
"get": { | |
"operationId": "ListingsController_findAll", | |
"parameters": [], | |
"responses": { | |
"200": { | |
"description": "", |
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
<template lang="html"> | |
<Navigator defaultRoute="/login"/> | |
</template> |
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
<?php | |
public function postDispatch(Zend_Controller_Request_Abstract $request) | |
{ | |
$layout = Zend_Layout::getMvcInstance(); | |
// Return early if forward detected | |
if (!$request->isDispatched() | |
|| $this->getResponse()->isRedirect() | |
|| ($layout->getMvcSuccessfulActionOnly() | |
&& (!empty($helper) && !$helper->isActionControllerSuccessful()))) |
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
// https://github.com/chartjs/chartjs-adapter-date-fns/blob/master/src/index.js | |
// @ts-ignore | |
import { _adapters, helpers } from 'chart.js'; | |
import { | |
parseISO, format, isValid, | |
startOfSecond, startOfMinute, startOfHour, startOfDay, | |
startOfWeek, startOfMonth, startOfQuarter, startOfYear, | |
addMilliseconds, addSeconds, addMinutes, addHours, | |
addDays, addWeeks, addMonths, addQuarters, addYears, |
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
'use strict'; | |
exports.handler = (event, context, callback) => { | |
// Extract the request from the CloudFront event that is sent to Lambda@Edge | |
const request = event.Records[0].cf.request; | |
// Extract the URI from the request | |
const olduri = request.uri; | |
const [path, query] = olduri.split('?'); | |
let redirecturi = null; |
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
temp = "copy json here"; | |
for(i = 0; i < temp.items.length; i++) { $$('input[name="source"]')[i].value = temp.items[i].cidr; $$('input[name="portRange"]')[i].value = 5000; } |
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
# install xcode!!!!!! OPEN APP STORE | |
xcode-select --install | |
# get slate config | |
curl https://gist.githubusercontent.com/darylteo/2863d6c91ec8c74305560929c88932bd/raw/9069529777ba4845cd65ed6d9b1cfa678927cec9/.slate.js > ~/.slate.js | |
# install brew stuff | |
brew install \ | |
bash-completion \ | |
bash-git-prompt \ |
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
configurations { | |
swagger | |
} | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
swagger 'io.swagger:swagger-codegen-cli:2.2.0' |
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
var pushRight = slate.operation("push", { | |
"direction": "right", | |
"style": "bar-resize:screenSizeX/2" | |
}); | |
var pushLeft = slate.operation("push", { | |
"direction": "left", | |
"style": "bar-resize:screenSizeX/2" | |
}); |
NewerOlder