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
<?xml version="1.0" encoding="UTF-8"?> | |
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> | |
<CORSRule> | |
<AllowedOrigin>*</AllowedOrigin> | |
<AllowedMethod>GET</AllowedMethod> | |
<AllowedMethod>POST</AllowedMethod> | |
<AllowedMethod>PUT</AllowedMethod> | |
<MaxAgeSeconds>3000</MaxAgeSeconds> | |
<AllowedHeader>*</AllowedHeader> | |
</CORSRule> |
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
function parseIdentify(input) { | |
var lines = input.split("\n"), | |
prop = {}, | |
props = [prop], | |
prevIndent = 0, | |
indent = 0, | |
indents = [indent], | |
currentLine, comps; | |
lines.shift(); //drop first line (Image: name.jpg) |
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
error: Error running command deploy | |
error: Nodejitsu Error (500): Internal Server Error | |
error: There was an error while attempting to deploy the app | |
error: | |
error: Error spawning drone: no matching engine found | |
error: Repository configuration | |
error: | |
error: This type of error is usually a user error. | |
error: Error output from Haibu: | |
error: |
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
{ | |
"name": "gonegreen", | |
"domains": [ | |
"gonegreenstore.com", | |
"www.gonegreenstore.com" | |
], | |
"version": "0.0.0-69", | |
"dependencies": { | |
"express": ">= 3.0.0rc2", | |
"passport": "*", |
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
/* | |
* Angular directive to insert an image from a source that may require a few seconds | |
* to become available such as a thumb created by server to AWS S3. | |
* This directive checks if the image yields an error, if so it will loop a HEAD request | |
* every intevrval (default to 500ms, 5 times), If that fails then it will jus use the | |
* fallback image | |
* This directive will only peform an HTTP request when the initial loading image fails | |
*/ | |
angular.module('app').directive('preview', function(stickerService, $http, $interval) { | |
return { |
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
/*! | |
* Bootstrap v4.0.0-alpha.3 (http://getbootstrap.com) | |
* Copyright 2011-2016 The Bootstrap Authors | |
* Copyright 2011-2016 Twitter, Inc. | |
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) | |
*//*! normalize.css v4.0.0 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block}audio:not([controls]){display:none;height:0}progress{vertical-align:baseline}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline-width:0}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:inherit}b,strong{font-weight:bolder}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relati |
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 | |
$html = | |
"<div class=\"row home-pg-feed-item pl0 pr0 ml0 mr0\" data-type=\"video\">" . | |
"<div class=\"col-lg-4 col-xs-4 pl0\">" . | |
"<a href=\"/clinical-dialogue.php?v={{ url }}\"><img src=\"{{ thumb-sm }}\" alt=\"img\"/></a>" . | |
"</div>" . | |
"<div class=\"col-lg-8 col-xs-8 pr0 \">" . | |
"<h4 class=\"mb5\">{{ title }}</h4>" . | |
"<a href=\"/clinical-dialogue.php?v={{ url }}\" class=\"watch-link\">Watch the video</a>" . | |
"<p>{{ summary }}</p>" . |
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 { createSign, randomBytes } from 'crypto' | |
import axios from 'axios' | |
import { resolve } from 'url' | |
const PK_HEADER = '\n-----BEGIN PRIVATE KEY-----\n' | |
const PK_FOOTER = '\n-----END PRIVATE KEY-----\n' | |
const BASE_URL = 'https://marketplace.walmartapis.com/' | |
const WALMART_CONSUMER = "b68d2a72...."; |
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
// Find all files which contain 'blah' from current dir | |
find . -type 'f' -exec grep -H 'blah' {}\; |
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
// request-promise-native | |
const body = request({ url: url, json: true }) | |
const res = await t.throws(body); | |
console.log(res.error) | |
// node-fetch | |
const body = await fetch(url) | |
console.log(await body.json()) |
OlderNewer