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
| console.log( | |
| Array.apply(0, Array(20)).map(function (x, y) { | |
| let fizz = { 0: "Fizz" }[y % 3] || ""; | |
| let buzz = { 0: "Buzz" }[y % 5] || ""; | |
| return fizz + buzz || y.toString(); | |
| }).join("\n") | |
| ); |
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
| [ | |
| { | |
| "character": "Ethel Rainicorn", | |
| "quote": "Jake, is that you? Are you going to let us in?", | |
| "linkTitle": "Her Parents", | |
| "href": "/wiki/Her_Parents" | |
| }, | |
| { | |
| "character": "Ethel Rainicorn", | |
| "quote": "Ohh, he's so handsome! Oh, Bob, our daughter's finally found a handsome Rainicorn to love!", |
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 | |
| mcdlog(){ | |
| host=$1 | |
| ns=openshift-machine-config-operator | |
| podname=$(oc get pods -o wide --no-headers -n ${ns}| grep ${host} | egrep ^machine-config-daemon | awk '{ print $1 }') | |
| oc logs -f ${podname} -c machine-config-daemon -n ${ns} | |
| } | |
| mcslog(){ |
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 express = require('express'); | |
| var bodyParser = require('body-parser'); | |
| var cors = require('cors'); | |
| function helloRoute() { | |
| var hello = new express.Router(); | |
| hello.use(cors()); | |
| hello.use(bodyParser.urlencoded({ | |
| extended: true | |
| })); |
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
| require("appdynamics").profile({ | |
| controllerHostName: '<CONTROLLER URI>', | |
| controllerPort: 443, | |
| controllerSslEnabled: true, | |
| accountName: '<ACCOUNT>', | |
| accountAccessKey: '<KEY>', | |
| applicationName: '<APP NAME>', | |
| tierName: '<TIER NAME>', | |
| nodeName: '<NODE NAME>' | |
| }); |
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
| require("appdynamics").profile({ | |
| controllerHostName: '<CONTROLLER URI>', | |
| controllerPort: 443, | |
| controllerSslEnabled: true, | |
| accountName: '<ACCOUNT>', | |
| accountAccessKey: '<KEY>', | |
| applicationName: '<APP NAME>', | |
| tierName: '<TIER NAME>', | |
| nodeName: '<NODE NAME>' | |
| }); |
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 fs = require('fs'), | |
| request = require('request'), | |
| spaces = [], | |
| AssemblaApiSecret = "<API Secret>", | |
| AssemblaApiKey = "<API Key>"; | |
| var options = { | |
| url: 'https://api.assembla.com/v1/spaces/', | |
| headers: { | |
| "X-Api-Secret": AssemblaApiSecret, |
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
| navigator.camera.getPicture(function(imageURI) { | |
| new AnnotationView({img:imageURI}); | |
| this.cancelView(); | |
| }.bind(this), function(err) { | |
| console.log("Error",err); | |
| this.cancelView(); | |
| }.bind(this), { | |
| sourceType: newPhoto ? Camera.PictureSourceType.CAMERA : Camera.PictureSourceType.PHOTOLIBRARY, | |
| quality: 75, | |
| saveToPhotoAlbum: newPhoto, |
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
| .container .icon { | |
| color: #333; | |
| font-family: IcoMoon; | |
| font-size: 18px; | |
| -webkit-font-smoothing: antialiased; | |
| } | |
| .container .icon-trash:before { | |
| content: '\e603'; | |
| } | |
| .container .icon-undo:before { |
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="heading"> | |
| <a class="closeWindowLink headicon icon-close pull-left"></a> | |
| <a class="saveImageLink headicon icon-check pull-right"></a> | |
| </div> | |
| <canvas> | |
| Sorry, your browser is not supported. | |
| </canvas> | |
| <div class="popup"><textarea></textarea></div> | |
| <ul> | |
| <li> |
NewerOlder