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
server { | |
listen 80; | |
listen [::]:80 default_server ipv6only=on; | |
index index.php index.html index.htm; | |
## Begin - Server Info | |
root /var/www; | |
server_name localhost; | |
## End - Server Info |
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
Show hidden characters
{ | |
"plugins": [ | |
"transform-class-properties", | |
"transform-react-jsx" | |
], | |
"presets": [ | |
"stage-2", | |
["env", { | |
"targets": { | |
"browsers": [ |
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 locales from './translation.json'; | |
console.log(locales.en['Hello, {{name}}'].replace('{{name}}', 'Dennis')); |
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 * as React from "react"; | |
import ReactDOM from "react-dom"; | |
import { Rnd } from "react-rnd"; | |
function App() { | |
return ( | |
<Rnd | |
default={{ | |
x: 0, | |
y: 0, |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
def Counter(initial = 0) { | |
def count = initial | |
def inc = { count += it } | |
return [ | |
increment: { inc(1) }, | |
decrement: { inc(-1) }, | |
value: { count } | |
] |
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
// super small progress bar styles | |
// recommended to be used with autoprefixer | |
// for the sake of consistency | |
$color: pink; | |
$whitespaceColor: #ffeeee; | |
progress { | |
appearance: none; | |
border: none; |
OlderNewer