- grunt-contrib-sass https://github.com/gruntjs/grunt-contrib-sass
- grunt-contrib-compass https://github.com/gruntjs/grunt-contrib-compass
- grunt-autoprefixer https://github.com/nDmitry/grunt-autoprefixer
- grunt-contrib-coffee https://github.com/gruntjs/grunt-contrib-coffee
- grunt-contrib-watch https://github.com/gruntjs/grunt-contrib-watch
- grunt-contrib-imagemin https://github.com/gruntjs/grunt-contrib-imagemin
- grunt-contrib-cssmin https://github.com/gruntjs/grunt-contrib-cssmin
- grunt-contrib-clean https://github.com/gruntjs/grunt-contrib-clean
- grunt-contrib-concat https://github.com/gruntjs/grunt-contrib-concat
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
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}" |
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.9) | |
// Compass (v1.0.1) | |
// ---- | |
/** | |
* Przykład pierwszy | |
*/ | |
$zindex: ( |
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 strict'; | |
angular.module('ngSvg', []) | |
.directive('usesvg', [function(){ | |
return { | |
restrict : 'E', | |
replace: true, | |
controller : ['$scope', function($scope){ |
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
👥 | |
👤 |
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
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, |
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
# Global variables | |
re='^[0-9]+$' | |
# Will create a new branch with name ($1) from master | |
# it will also make sure master is up to date from origin | |
workstart() { | |
if ! [[ $1 =~ $re ]] | |
then | |
val=$1 | |
else |
Type crontab -l
to see your cron jobs. Type crontab -e
to edit them. You have to use Vim apparently.
Add a line like this:
0,30 * * * * /Users/YOURNAME/Documents/scripts/stretch.sh
That is on every 0th and 30th minute of the hour. Make sure all the separators in there are tabs!
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
// @flow | |
import * as React from "react"; | |
import getStyleProp from "desandro-get-style-property"; | |
const supportsObjectFit = !!getStyleProp("objectFit"); | |
type Props = React.ElementProps<"img">; | |
export default class Image extends React.Component<Props> { |
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
// @flow | |
import * as React from "react"; | |
import ResizeObserver from "resize-observer-polyfill"; | |
import invariant from "invariant"; | |
type Entry = { | |
+contentRect: { | |
+width: number, | |
+height: number |
OlderNewer