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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Hydra - Delete one button & produce two more!</title> | |
<meta charset="UTF-8"> | |
</head> | |
<body id="hydrabody"> | |
<button class="hydrahead">Hydra Head</button> | |
</body> | |
<script> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Given a number count trailing zeros!</title> | |
<meta charset="UTF-8"> | |
</head> | |
<body> | |
This is different from counting trailing zeroes from a given factorial. | |
<script> | |
function countTrailingZeros(input){ |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Check if a given a number is power of 2</title> | |
<meta charset="UTF-8"> | |
</head> | |
<body> | |
Check if a given number is power of 2. This can be modified any number less than 10. | |
<script> | |
function isPowerOf2(input){ |
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
<html> | |
<head> | |
<title>timer using setTimeout</title> | |
</head> | |
<body> | |
<script> | |
var timer = function () { | |
var i = 0; | |
return function () { | |
i = i + 1; |
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
syntax enable " enable syntax processing | |
set tabstop=4 " number of visual spaces per TAB | |
set softtabstop=4 " number of spaces in tab | |
set expandtab " tabs are space | |
set number " show line numbers | |
set showcmd " show command in bottom bar | |
set cursorline " highlight current line | |
filetype indent on " load filetype-specific indent files | |
set wildmenu " visual autocomplete for command menu | |
set showmatch " highlight matching [{()}] |
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
var re = /[789]\d{9}$/; | |
re.test(9876543210); | |
re.test(8765432109); | |
re.test(7654321098); | |
re.test(6543210987); | |
re.test(5432109876); |
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
var request = require('request'); | |
var cheerio = require('cheerio'); | |
var url = require('url'); | |
var httpsurl = 'https://www.yahoo.com/'; | |
var assets = { | |
img: {src:'src'}, | |
link: {src:'href'}, | |
script: {src:'src'} | |
}; |
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
<html> | |
<head> | |
<title>Flexi list</title> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width"> | |
<style> | |
#container{ | |
padding: 3px; | |
color: #000; | |
font-family: sans-serif; |
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
<VirtualHost *:80> | |
#webmaster's email address | |
ServerAdmin webmaster@localhost | |
ServerName my-virtual-host | |
DocumentRoot /var/www/my-virtual-host/document/root/ | |
<Directory /> | |
Options FollowSymLinks | |
#Comment following to enable oveririding through .htaccess, e.g. mod_rewrite | |
AllowOverride None | |
</Directory> |
OlderNewer