This file contains 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 'active_support/core_ext/range/overlaps' | |
class RangeSet | |
include Enumerable | |
def initialize(ranges = []) | |
@ranges = Set.new(self.class.merge_all(ranges.to_a)) | |
end | |
def <<(range) |
This file contains 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
{"name":"exported","settings":"{\"settings\":\"{\\n \\\"[css]\\\": {\\n \\\"editor.defaultFormatter\\\": \\\"sibiraj-s.vscode-scss-formatter\\\"\\n },\\n \\\"[html]\\\": {\\n \\\"editor.defaultFormatter\\\": \\\"vscode.html-language-features\\\"\\n },\\n \\\"[javascript]\\\": {\\n \\\"editor.defaultFormatter\\\": \\\"esbenp.prettier-vscode\\\"\\n },\\n \\\"[javascriptreact]\\\": {\\n \\\"editor.defaultFormatter\\\": \\\"esbenp.prettier-vscode\\\"\\n },\\n \\\"[json]\\\": {\\n \\\"editor.defaultFormatter\\\": \\\"esbenp.prettier-vscode\\\"\\n },\\n \\\"[jsonc]\\\": {\\n \\\"editor.defaultFormatter\\\": \\\"esbenp.prettier-vscode\\\"\\n },\\n \\\"[postcss]\\\": {\\n \\\"editor.defaultFormatter\\\": \\\"stylelint.vscode-stylelint\\\"\\n },\\n \\\"[scss]\\\": {\\n \\\"editor.defaultFormatter\\\": \\\"sibiraj-s.vscode-scss-formatter\\\"\\n },\\n \\\"[typescript]\\\": {\\n \\\"editor.defaultFormatter\\\": \\\"esbenp.prettier-vscode\\\"\\n },\\n \\\"[typescriptreact]\\\" |
This file contains 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
const Machine = createMachine({ | |
context: { | |
name: '', | |
}, | |
schema: { | |
context: {} as { name: string }, | |
}, | |
states: { | |
A: { | |
on: { |
This file contains 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
const { of, fromEvent } = Rx; | |
const { expand, map, zip } = RxOperators; | |
const click$ = fromEvent(document, 'click') | |
of(1).pipe( | |
expand(x => ( | |
of(x + 1) | |
.pipe( | |
zip(click$), |
This file contains 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
It’s just makeup! How to care about CSS |
This file contains 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, { Component } from 'react'; | |
import { connect } from 'react-redux'; | |
import PropTypes from 'prop-types'; | |
import withPermissions from './withPermissions'; | |
import Permissions from './Permissions'; | |
class Actions extends Component { | |
render() { | |
const { user: { name, id }, permissions } = this.props; |
This file contains 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
{"kind":"mobile_provider_price","customer_state":"prospect","needle":{"position":5,"commentary":"Prices are up a little - nothing to worry about though.","price":"8.186","status":"urn:flick:market:price:forecast","unit_code":"cents","per":"kwh","start_at":"2018-05-24T21:30:00.000+00:00","end_at":"2018-05-24T21:59:59.000+00:00","type":"indicative"}} |
This file contains 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 url('https://fonts.googleapis.com/css?family=Rubik:300,400,700,900'); | |
body, | |
button { | |
font-family: 'Rubik', sans-serif !important; | |
text-rendering: optimizeLegibility; | |
} | |
body { | |
font-weight: 300; |
This file contains 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 'singleton' | |
class HashMap | |
DEFAULT_SIZE = 256 | |
DEFAULT_LOAD = 0.75 | |
def initialize(size: DEFAULT_SIZE, load: DEFAULT_LOAD) | |
@size = size | |
@load = load | |
@count = 0 |
This file contains 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
PROMPT='%{$fg_bold[yellow]%}★%{$fg_bold[green]%}%p %{$fg[blue]%}%c % %{$reset_color%}' | |
RPROMPT='$(git_prompt_info)' | |
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[green]%}" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg_bold[red]%} ✗%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_CLEAN=" " |
NewerOlder