Skip to content

Instantly share code, notes, and snippets.

View singerxt's full-sized avatar
🙃
Trying to be Rustacean ;-)

Mateusz Śpiewak singerxt

🙃
Trying to be Rustacean ;-)
View GitHub Profile
//Someone tried to combine first and third rotator using css classes
// Because now featured rotator is now between first and third rotator looks broken.
// this is happening only on mobile
//first rotator
<div class="playlist-node">
<div class="title">Title</div>
<div class="rotator" style="display: none!important"></div>
</div>
.lazy-image {
width: auto;
height: auto;
position: relative;
}
@-webkit-keyframes loaded {
0% {
opacity: 0;
}
/* USE CASE WHEN WE HAVE 2 ADS IN ONE PAGE */
<div class="ad1">
<form data-dw="300" data-dh="90" data-dslid="300x60_1" data-tw="300" data-th="60" data-tslid="300x60_1"
data-mw="300" data-mh="60" data-nslid="300x600_1"></form>
</div>
<div class="ad2">
<form data-dw="790" data-dh="90" data-dslid="790x90_1" data-tw="790" data-th="90" data-tslid="790x90_1"
data-mw="300" data-mh="60" data-nslid="300x60_2"></form> //important see 300x60_2 (_2 is ad position and is another the for other breakpoints)
</div>
var freeWheel = {
/**
* Configure correct ad width and height
* @returns {undefined}
*/
setAdWidthHeight: function () {
var adWidth,
adHeight,
@singerxt
singerxt / SassMeister-input.scss
Created July 29, 2015 21:46
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
.first, .second {
.hello {
content: 'yo';
}
}
console.log(0.1 + 0.2);
console.log(0.1 + 0.2 == 0.3);
query = {};
options = {};
options.filter = {
{fieldName}: {Value}
}
import axios from 'axios'
const baseURL = 'http://master.datasource.jazzy-hr.jzapp.io/api/v1/';
const api = axios.create({
baseURL,
timeout: 1500,
})
export const getGnomes = (params = {}) => api.get('/gnomes', {