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; |
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 } | |
] |
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
import * as React from "react"; | |
import ReactDOM from "react-dom"; | |
import { Rnd } from "react-rnd"; | |
function App() { | |
return ( | |
<Rnd | |
default={{ | |
x: 0, | |
y: 0, |
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
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
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
import java.util.Scanner; | |
import java.io.PrintWriter; | |
import java.io.File; | |
public class Prog3b { | |
public static void main(String[] args) { | |
System.out.println("Program 3, Dennis Thompson, masc001"); | |
if(args.length != 2) { | |
System.err.println("Usage: java Prog3b infileName outfileName"); |
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
<?php | |
/** | |
* Class FileNotFoundException | |
* @author Dennis Thompson | |
* @license MIT | |
* @version 1.0 | |
*/ | |
class FileNotFoundException extends Exception { |
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
<?php | |
/** | |
* Class CouldNotConnectDatabaseException | |
* @author Dennis Thompson | |
* @license MIT | |
* @version 1.0 | |
*/ | |
class CouldNotConnectDatabaseException extends Exception { |
NewerOlder