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
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" alternatively, pass a path where Vundle should install plugins | |
"call vundle#begin('~/some/path/here') | |
" let Vundle manage Vundle, required |
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
function UrlOutput(props) { | |
return ( | |
<> | |
<div className={outputStyles.shortenOutput}> | |
<div className={outputStyles.siteName}> | |
urlmem.com/ | |
</div> | |
<div className={outputStyles.shortWord}> | |
{props.shortUrl} | |
</div> |
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, { Component } from 'react'; | |
import UrlShortening from './UrlShortening.js'; | |
import './App.css'; | |
class App extends Component { | |
render() { | |
return ( | |
<div className="App"> | |
<div className="Header"> | |
<a className="blogButton" href="https://antiprojects.com/urlmem.html">Blog</a> |
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, { Component } from 'react'; | |
import styles from './input-box.module.css'; | |
class UrlInput extends Component { | |
render() { | |
return( | |
<div className={styles.shortenOptions}> | |
<input type="text" placeholder="url to shorten" className={styles.urlInput} tabIndex="1" /> | |
<button className={styles.shortenButton} tabIndex="3">shorten</button> | |
<br /> |
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, { Component } from 'react'; | |
import './App.css'; | |
class App extends Component { | |
constructor(props) { | |
super(props); | |
this.state = {dataText: "data not yet recieved"}; | |
} | |
// this is called once the component is rendered at least once |
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
const express = require('express'); // import express | |
const app = express(); | |
/* | |
* A deployment service might set a correct PORT | |
* to use, if no port is set 5000 will probably | |
* be free for use. | |
*/ | |
const port = process.env.PORT || 5000; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
html { | |
font-family: Arial; | |
} | |
.shorten-options { | |
position: absolute; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
html { | |
font-family: Arial; | |
} | |
.shorten-output { |
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
const fs = require('fs'); | |
const alph = 'abcdefghijklmnopqrstuvwxyz' | |
try { | |
var fileContents = fs.readFileSync('./dictionary.txt', 'utf8'); | |
} catch(err) { | |
throw "Dictionary file does not exist"; | |
} | |
var words = fileContents.split('\n'); |
This file has been truncated, but you can view the full file.
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
A | |
A's | |
AMD | |
AMD's | |
AOL | |
AOL's | |
Aachen | |
Aachen's | |
Aaliyah | |
Aaliyah's |