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
let taskIndex = parseInt(e.target.value, 10); | |
console.log('remove task: %d', taskIndex, this.state.list[taskIndex]); | |
this.setState(state => { | |
state.list.splice(taskIndex, 1); | |
return {items: state.list}; | |
}); |
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
root = true | |
[*] | |
indent_style = space | |
indent_size = 2 | |
end_of_line = lf | |
charset = utf-8 | |
trim_trailing_whitespace = 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
// ---- | |
// Sass (v3.4.0.rc.1) | |
// Compass (v1.0.0.alpha.20) | |
// ---- | |
$themes: ( | |
"theme-1": ( | |
"color": red | |
), | |
"theme-2": ( |
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
sudo npm cache clean -f | |
sudo npm install -g n | |
sudo n stable |
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 scrollTriggers = [ | |
{ selector: ".media-vizioni", klass: "tada" }, | |
{ selector: ".media-efektiviteti", klass: "tada" }, | |
{ selector: ".media-krahasimi", klass: "tada" }, | |
{ selector: ".media-dimensionet", klass: "flipInY" } | |
]; | |
// on load, get the elements and their offsets |
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 init() { | |
var mapCanvas = document.getElementById('map_canvas'); | |
var mapOptions = { | |
center: new google.maps.LatLng(find.latitude, find.longitude), | |
zoom: 17, | |
scrollwheel: false, | |
styles: | |
[ | |
{ | |
"stylers": [ |
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
<a href="#" class="btn">btn</a> |
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="box home"> | |
<h1>Lorem</h1> | |
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eligendi, nobis!</p> | |
</div> | |
<div class="box about"> | |
<h1>Lorem</h1> | |
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Illo, excepturi consequatur ipsa quod doloremque perferendis dolores itaque qui officia vitae architecto sunt laudantium praesentium impedit nam ab nulla vero quos.</p> | |
</div> | |
<div class="box contact"> | |
<H1>Lorem</H1> |
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
// ---- | |
// Sass (v3.3.8) | |
// Compass (v1.0.0.alpha.19) | |
// ---- | |
@media screen and (min-width: 900px) { | |
@at-root (with: media) { | |
body { | |
background-color: lighten(red, 30%); | |
} |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |