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
(function($) { | |
$('.controls-header').remove(); | |
$('.slick-track').css('zoom', 0.5); | |
$('#widget .thumbnail img').css('transform', 'scale(0.2)'); | |
})(jQuery); |
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
<style> | |
#bogus { | |
background: red; | |
width: 50px; | |
height: 30px; | |
transition: 500ms all; | |
position: absolute; | |
right: 0; | |
overflow: hidden; | |
display: flex; |
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
last=$(cat hdcheck.log) | |
available=`df -H | grep disk1s1 | awk '{print $4}' | sed "s/G//"` | |
if [ $available -ne $last ]; then | |
open https://cdn.pixabay.com/photo/2014/04/02/10/26/attention-303861_960_720.png | |
fi | |
echo $available > hdcheck.log |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
APP_DEV=static.intermail.dev.$1.jp7.com.br | |
echo "Creating S3 development bucket " $APP_DEV"...\n" | |
aws s3api create-bucket --bucket $APP_DEV --region us-east-1 | |
echo "Setting Static Web Hosting...\n" | |
aws s3api put-bucket-website --bucket $APP_DEV --website-configuration file://website-config.json | |
echo "Bucket" $APP_DEV "created, visit AWS Console to create IAM user for said bucket.\n" | |
APP_QA=static.intermail.qa.$1.jp7.com.br |
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
<html><head> | |
<link type="text/css" href="pagina.css" rel="stylesheet"> | |
<title>Pesquisa</title> | |
</head> | |
<script language="vbscript"> | |
sub window_onload() | |
adw.innerhtml = clear | |
end sub | |
</script> | |
<body bgcolor="black"> |
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
// Component | |
class CarList extends Component { | |
componentWillMount() { | |
this.props.fetchCars(); // dispatching an action creator | |
} | |
render() { |
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
async function timeoutFunc(char, interval) { | |
console.log('timeoutFunc - '+char); | |
const promise = new Promise(function(resolve, reject) { | |
setTimeout(function () { | |
console.log('timeoutFunc - '+char+interval); | |
resolve(interval); | |
}, interval); | |
}); | |
return await promise; | |
} |
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
/** | |
* Inserts the response content into a target element. | |
* | |
* data-once Load ajax only once | |
* data-target #id of the target div | |
* data-remote true (Rais UJS properties) | |
*/ | |
$(document).on('ajax:success', '[data-target]', function(e, data, status, xhr) { | |
if (this !== e.target) { | |
return; // prevent propagation to parent nodes |
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 webserver = require('webserver'); | |
var server = webserver.create(); | |
var system = require('system'); | |
var port = system.args[1]; | |
var service = server.listen(port, function(request, response) { | |
var start = performance.now(); | |
var output = '/tmp/outputserver'+port; | |
console.log('Abrindo'); |
NewerOlder