Python syntax here : 2.7 - online REPL
Javascript ES6 via Babel transpilation - online REPL
import math
img { | |
/* Preventing draggable images or selection on every image. Use at your own risk. */ | |
-webkit-user-select:none; | |
-webkit-touch-callout:none; /*Safari, safari mobile; iPhone OS*/ | |
-khtml-user-select: none; | |
-ms-user-select: none; | |
-o-user-select: none; | |
user-select: none; | |
} |
// Inspired in: | |
// https://css-tricks.com/snippets/css/cross-browser-opacity/ | |
// http://zerosixthree.se/8-sass-mixins-you-must-have-in-your-toolbox/ | |
// Usage: `@include hardOpacity(1);`, `@include hardOpacity(.5);` | |
@mixin hardOpacity($valueOpacity) { | |
$unitOp: unit($valueOpacity); | |
$valOp: parseInt($valueOpacity); |
/* | |
This snippet requires PIXI and underscoreJS to work; | |
The good thing about this approach is that you don't have to manually set the number of total frames | |
used and file name references used in the animation to build up your texture data; and this technique | |
also makes it a lot easier to remove the BaseTextures from TextureCache once you no longer need them, | |
so that you can free up precious memory! | |
Use this snippet with caution, I quickly scribbled it in, so not sure if it breaks, please let me know | |
in the comments if you found it useful or found an error. Cheers! | |
Python syntax here : 2.7 - online REPL
Javascript ES6 via Babel transpilation - online REPL
import math
Currently, there is an explosion of tools that aim to manage secrets for automated, cloud native infrastructure management. Daniel Somerfield did some work classifying the various approaches, but (as far as I know) no one has made a recent effort to summarize the various tools.
This is an attempt to give a quick overview of what can be found out there. The list is alphabetical. There will be tools that are missing, and some of the facts might be wrong--I welcome your corrections. For the purpose, I can be reached via @maxvt on Twitter, or just leave me a comment here.
There is a companion feature matrix of various tools. Comments are welcome in the same manner.
$ git remote rm origin | |
$ git remote add origin [email protected]:aplikacjainfo/proj1.git | |
$ git config master.remote origin | |
$ git config master.merge refs/heads/master |
<?php | |
/** | |
* Mostrar / Ocultar Admin Bar | |
* | |
* Según el Codex, basta retornar el valor 'false' en la función 'show_admin_bar' para ocultar | |
* la barra de administración. Sin embargo, esta implementación parece que no funciona correctamente. | |
* | |
*/ | |
function remove_admin_bar($show_admin_bar) | |
{ |
Javascript files from the examples folder (such as OrbitControls) are not CommonJS or ES Modules, but they can still be used in Webpack bundles:
In package.json
:
"dependencies": {
"three": "0.84.0",
"webpack": "2.4.1"
}
To send a request via the sandbox, you can use pm.sendRequest.
pm.test("Status code is 200", function () {
pm.sendRequest('https://postman-echo.com/get', function (err, res) {
pm.expect(err).to.not.be.ok;
pm.expect(res).to.have.property('code', 200);
pm.expect(res).to.have.property('status', 'OK');
});
});