Skip to content

Instantly share code, notes, and snippets.

🐼
I'm a panda developer.

Maciej Korsan maciejkorsan

🐼
I'm a panda developer.
Block or report user

Report or block maciejkorsan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@maciejkorsan
maciejkorsan / config.yml
Last active Feb 8, 2019
CircleCI GitHub - FTP deploy config
View config.yml
version: 2
jobs:
build:
docker:
- image: circleci/node:latest
steps:
- checkout
- run: npm install
- run: npx gulp build
- run: node .circleci/deploy.js
View syncano-client-connect.js
const s = new SyncanoClient('instance-name');
s.get('Christmas2017/get-wishes/', {wish: wishId})
View aframe-customfont.js
senderPlaceholder.setAttribute('text', `value:from: ${wish.sender}; font: /assets/fonts/raleway/raleway.fnt; fontImage: /assets/fonts/raleway/raleway.png; color: #000000`);
View full-width-header.js
function scaleHeader() {
var scalable = document.querySelectorAll('.scale--js');
var margin = 10;
for (var i = 0; i < scalable.length; i++) {
var scalableContainer = scalable[i].parentNode;
scalable[i].style.transform = 'scale(1)';
var scalableContainerWidth = scalableContainer.offsetWidth - margin;
var scalableWidth = scalable[i].offsetWidth;
scalable[i].style.transform = 'scale(' + scalableContainerWidth / scalableWidth + ')';
scalableContainer.style.height = scalable[i].getBoundingClientRect().height + 'px';
View full-width-header.css
.scale__container--js {
text-align: center;
}
.scale--js {
display: inline-block;
transform-origin: 50% 0;
}
View full-width-header.html
<div class="scale__container--js">
<h1 class="scale--js">I'm full width!</h1>
</div>
You can’t perform that action at this time.