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> | |
<title>Circle avatar</title> | |
<style type="text/css"> | |
.avatar { | |
display: block; | |
width: 200px; | |
height: 200px; |
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
#!/bin/bash | |
dictionary=/usr/share/dict/american-english | |
length="\+" | |
while getopts ":d:n:" opt; do | |
case $opt in | |
d) | |
dictionary="$OPTARG" | |
;; |
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> | |
<title>Pyro</title> | |
<style type="text/css"> | |
body { margin: 0; font-size: 16px; } | |
h1, h2 { margin: 0; } | |
.wrapper { width: 70%; margin: 0 auto; } | |
#main-header { |
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
#include <stdio.h> | |
int sort_by_asc(int a, int b) | |
{ | |
if(a < b) return 0; | |
return 1; | |
} | |
int sort_by_dsc(int a, int b) | |
{ |
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> | |
<title>Tabs</title> | |
<style type="text/css"> | |
body { margin: 0; } | |
nav ul { | |
background-color: #222; |
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> | |
<title>Accordion</title> | |
<style type="text/css"> | |
p { margin: 0; } | |
.accordion h2 { cursor: pointer; } |
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
from __future__ import print_function | |
def sum_one_to_n(n): | |
return (n * (n + 1)) / 2 | |
def get_index(row, col): | |
return sum_one_to_n(row) + col | |
def get_value(row, col, l): | |
if col < 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>My webapp</title> | |
<style type="text/css"> | |
#imp-table, #imp-table tr, #imp-table td { | |
border: 1px solid black; | |
border-collapse: collapse; | |
} |
NewerOlder