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
#include <iostream> | |
#include <vector> | |
#include <string> | |
using namespace std; | |
int main() | |
{ | |
vector<string> text; | |
string word; | |
while (cin >> word) { |
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
#include <iostream> | |
#include <vector> | |
#include <string> | |
using namespace std; | |
int main() | |
{ | |
vector<string> text; | |
string word; | |
while (cin >> word) { |
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
total = 0 | |
next_order = 10 | |
length = 1 | |
while True: | |
result_of_power = 0 | |
base = 1 | |
list_of_powers = [] | |
while result_of_power < next_order: | |
result_of_power = base**length | |
list_of_powers.append(result_of_power) |
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
#include <iostream> | |
#include <vector> | |
#include <map> | |
#include <thread> | |
#include <mutex> | |
#include <algorithm> | |
#include <iomanip> | |
using namespace std; | |
const long limit = 1500000; |
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
#include <iostream> | |
#include <vector> | |
#include <map> | |
#include <thread> | |
#include <mutex> | |
#include <algorithm> | |
#include <iomanip> | |
using namespace std; | |
const long limit = 1500000; |
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
autoload -U colors && colors | |
autoload -Uz compinit && compinit | |
PROMPT="%{$fg[blue]%}%~ ▶%{$reset_color%} " | |
export TERM="xterm-256color" | |
export EDITOR='vim' | |
export CLICOLOR=1 | |
export _JAVA_OPTIONS="-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true" | |
alias l='ls' |
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
<li> | |
<%= ('a'.ord + answer_counter).chr >) <%= answer.content %> | |
</li> |
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
<table style="float: left; margin-left: 20px;"> | |
<% if @user == current_user %> | |
<caption>My Holidays</caption> | |
<thead> | |
<tr> | |
<th>Start Date</th> | |
<th>End Date</th> | |
<th>Description</th> | |
<th>State</th> | |
<th>Type</th> |
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
def foo(dep, sym) | |
dep = dep.partition(/[<>=]{1,2}/) | |
name = dep[0] | |
intervall = Version.get_interval dep[1..2].join | |
pkg = Package.new(name, intervall) | |
unless Pacman.installed? pkg | |
if Pacman.available? pkg | |
@dependencies[sym] << pkg | |
else | |
pkg = AurQuery.getpkg pkg |
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
File.foreach( "dictionary.txt" ) do |line| | |
md = line.match(/\A([A-Z]+)/) | |
puts md[0] if md | |
end |
OlderNewer