Skip to content

Instantly share code, notes, and snippets.

View nergal's full-sized avatar
🇺🇦
Ще не вмерла України i слава і воля

Artem Poliukhovych nergal

🇺🇦
Ще не вмерла України i слава і воля
  • SoftServe Inc
  • Kyiv, Ukraine
  • 11:50 (UTC +03:00)
View GitHub Profile
// Converting Twitter Bootstrap RFS mechanism into typescript to make it available for CSS in JS i.e. (styled components).
// Twitter Bootstrap RFS: https://github.com/twbs/rfs
// Javascript Approach: https://gist.github.com/supposedly/9b9f5de66c2bcbbf5d7469dcec50bfd7
// Usage
// import rfs from 'rfs';
// rfs( '20px', 'font-size' );
// rfs( '1.5rem', 'font-size' );
// rfs( '1rem', 'margin-bottom' );
@thehig
thehig / screenshots.spec.js
Created September 19, 2018 12:33
js: Storyshots with multiple device/viewport puppeteer screenshots
import path from 'path';
import fs from 'fs';
import initStoryshots from '@storybook/addon-storyshots';
import { imageSnapshot } from './storyshots-puppeteer';
import devices from 'puppeteer/DeviceDescriptors';
// Store the screenshots outside the source folder to prevent jest from 'watching' them.
// Since they're outside the src directory we nav to them relatively
const ROOTDIR = path.join(__dirname, '../../../');
@nebgnahz
nebgnahz / gstreamer.md
Last active January 9, 2025 13:12
Collections of GStreamer usages

Most GStreamer examples found online are either for Linux or for gstreamer 0.10.

This particular release note seems to have covered important changes, such as:

  • ffmpegcolorspace => videoconvert
  • ffmpeg => libav

Applying -v will print out useful information. And most importantly the negotiation results.

anonymous
anonymous / gist:540059
Created August 20, 2010 10:52
<?php
/**
*
* All nodes should be added from a list
* where the nodes are ordered by parent then id
*
* MikeC - My favourite object
*/
class Gravitywell_Tree
{