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
public int min(){ | |
int minimum = list.get(0); | |
for (int i: list){ | |
if (i <= minimum) { | |
minimum = i; | |
} | |
} | |
return minimum; | |
} |
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
from Monster import Monster | |
from Person import Person | |
import random | |
from sys import exit | |
#class Person(object): | |
# def __init__(self, name): | |
# self.name = name | |
# self.life = 100 |
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 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<title>My website!</title> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> | |
<meta name="description" | |
content="Placeholder, Placeholder" /> | |
<meta name="keywords" content="Placeholder, placeholder" /> | |
<link rel="stylesheet" type="text/css" href="style.css" /> | |
</head> |
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
from bs4 import BeautifulSoup | |
import requests | |
import os | |
images = [] | |
final = "" | |
r = requests.get('http://xkcd.com/') | |
soup = BeautifulSoup(r.content) |
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
public class SearchSize extends SwingWorker<Long, Long> { | |
private String currentPath; | |
private JLabel lblSize; | |
private long totalSize = 0; | |
public SearchSize(String path, JLabel lblSize){ | |
this.currentPath = path; | |
this.lblSize = lblSize; | |
} |
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
{ | |
"name": "bootstrap" | |
, "description": "Sleek, intuitive, and powerful front-end framework for faster and easier web development." | |
, "version": "2.3.1" | |
, "keywords": ["bootstrap", "css"] | |
, "homepage": "http://twitter.github.com/bootstrap/" | |
, "author": "Twitter Inc." | |
, "scripts": { "test": "make test" } | |
, "repository": { | |
"type": "git" |
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
#define S_base03 #002b36 | |
#define S_base02 #073642 | |
#define S_base01 #586e75 | |
#define S_base00 #657b83 | |
#define S_base0 #839496 | |
#define S_base1 #93a1a1 | |
#define S_base2 #eee8d5 | |
#define S_base3 #fdf6e3 | |
#define S_yellow #b58900 | |
#define S_orange #cb4b16 |
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>Rettiwt</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<link rel="stylesheet" type="text/css" href="css/stylecss.css"> | |
</head> | |
<body> | |
<h1>Rettiwit</h1> | |
<div id="content"> |
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
;;; Packages manager for Emacs | |
(require 'package) | |
(add-to-list 'package-archives '("marmalade" . "http://marmalade-repo.org/packages/")) | |
(add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/")) | |
;;; | |
;;; Keybindings | |
(global-set-key [(f5)] 'ack) | |
(global-set-key (kbd "C-x ;") 'kill-some-buffers) | |
(define-key global-map (kbd "RET") 'newline-and-indent) ; When pressing RET (Enter) makes a new line and ident it |
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
<h1>Welcome to INDEX! </h1> | |
<% @user.each do |m| %> | |
<p>Email: <%= m.email %></p> | |
<br /> | |
<% end %> |
OlderNewer