Skip to content

Instantly share code, notes, and snippets.

@arekbartnik
arekbartnik / scroll-manager.js
Created April 27, 2017 21:10 — forked from maddie927/scroll-manager.js
Scroll Manager for React Router v4
import React from 'react'
import { func, node, number, object, shape, string } from 'prop-types'
import { withRouter } from 'react-router'
import debounceFn from 'lodash/debounce'
class ScrollManager extends React.Component {
static propTypes = {
children: node.isRequired,
history: shape({
action: string.isRequired,
'use strict';
angular.module('ngSvg', [])
.directive('usesvg', [function(){
return {
restrict : 'E',
replace: true,
controller : ['$scope', function($scope){
@arekbartnik
arekbartnik / SassMeister-input.scss
Last active August 29, 2015 14:13
Generated by SassMeister.com.
// ----
// Sass (v3.4.9)
// Compass (v1.0.1)
// ----
/**
* Przykład pierwszy
*/
$zindex: (
require 'base64'
# tools.ietf.org/html/rfc2397
# developer.mozilla.org/en/data_URIs
# "data:" + MIME type + ";base64," + base64-encoded content
def to_data_url(content, content_type)
outuri = 'data:' + content_type + ';base64'
content = Base64.encode64(content).gsub("\n", '')
outuri += ",#{content}"