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
mkdir "${1%.*}" | |
( cd "${1%.*}" | |
xargs -n1 -P10 -0 -d"\n" -Iuri bash -c "wget -O \"\$(echo \"uri\" | sed -e \"s/^.*&\///g\" -f ../urldecode.sed)\" \"uri\"" <../$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
<!DOCTYPE html> | |
<!-- saved from url=(0032)http://habrahabr.ru/post/147793/ --> | |
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<meta name="viewport" content="width = 1080"> | |
<title>GNU/Linux и устройство на Rockchip 2918 / Хабрахабр</title> | |
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> | |
<!-- saved from url=(0032)http://habrahabr.ru/post/133915/ --> | |
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<meta name="viewport" content="width = 1080"> | |
<title>Восстанавливаем запоротый SSD / Хабрахабр</title> | |
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> | |
<!-- saved from url=(0032)http://habrahabr.ru/post/145944/ --> | |
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<meta name="viewport" content="width = 1080"> | |
<title>Интерфейсель: Запутанная история / Хабрахабр</title> | |
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> | |
<!-- saved from url=(0032)http://habrahabr.ru/post/138538/ --> | |
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<meta name="viewport" content="width = 1080"> | |
<title>Неназойливые регистрация и вход на сайт / Хабрахабр</title> | |
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> | |
<!-- saved from url=(0032)http://habrahabr.ru/post/145084/ --> | |
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<meta name="viewport" content="width = 1080"> | |
<title>Необычные клавиатуры для программистов и не только / Хабрахабр</title> | |
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> | |
<!-- saved from url=(0032)http://habrahabr.ru/post/111569/ --> | |
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<meta name="viewport" content="width = 1080"> | |
<title>Пишем HTTP proxy сервер с плагинами / Хабрахабр</title> | |
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
class App < Padrino::Application | |
register Padrino::Mailer | |
register Padrino::Helpers | |
register Padrino::Admin::AccessControl | |
register Padrino::Rendering | |
set :session_secret, "blah" | |
set :sessions, true | |
[403, 404, 405, 500].each do |code| |
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
#!/usr/bin/env ruby | |
module Algo | |
# Gets the Greatest Common Divisior of integers a and b | |
def self.gcd(a, b) | |
if b == 0 | |
a.abs | |
else | |
gcd(b, a % b) | |
end |
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
struct list_item { | |
list_item *next; // указатель на следующий элемент списка | |
list_item *rand; // указатель на произвольный элемент списка | |
}; | |
list_item *first; // указатель на первый элемент списка | |
list_item copy(){ | |
int length = 0; | |
OlderNewer