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
use std::os; | |
use std::rand::{task_rng, Rng}; | |
use std::cmp::min; | |
use std::char::from_u32; | |
const MIN_WORD_LEN : uint = 3; | |
const MAX_WORD_LEN : uint = 10; | |
const DROPLINE_CHANCE : uint = 100; | |
fn clean_crossword(crossword : &mut Vec<Vec<char>>) { |
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
import Network (listenOn, withSocketsDo, accept, PortID(..)) | |
import System.IO (hSetBuffering, hGetLine, hPutStrLn, BufferMode(..), Handle, hClose) | |
import Control.Concurrent (forkFinally) | |
import Text.Printf | |
import Control.Monad | |
import Data.List.Split (splitOn) | |
readHTTPHeaders :: Handle -> IO String | |
readHTTPHeaders h = do |
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
import FRP.Helm | |
import qualified FRP.Helm.Keyboard as Keyboard | |
import qualified FRP.Helm.Window as Window | |
boardWidth = 7 | |
boardHeight = 6 | |
--type Board [[Int]] | |
{- 6x7 circles | |
0 - empty |
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
Подробная информация об использовании оперативной | |
(JIT) отладки вместо данного диалогового | |
окна содержится в конце этого сообщения. | |
************** Текст исключения ************** | |
System.Globalization.CultureNotFoundException: Неподдерживаемая культура. | |
Имя параметра: culture | |
0 (0x0000) - недопустимый идентификатор культуры. | |
в System.Globalization.CultureInfo.InitializeFromCultureId(Int32 culture, Boolean useUserOverride) | |
в System.Windows.Forms.InputLanguageChangingEventArgs..ctor(InputLanguage inputLanguage, Boolean sysCharSet) |
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 <chrono> | |
#include <ctime> | |
#include <string> | |
using namespace std; | |
typedef double** matrix; | |
void matrixmult_common(matrix A, matrix B, matrix C, size_t N) |
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
Show hidden characters
{ | |
"caret_style": "solid", | |
"color_scheme": "Packages/User/Monokai Soda.tmTheme", | |
"ensure_newline_at_eof_on_save": true, | |
"file_exclude_patterns": | |
[ | |
".DS_Store", | |
".tags*", | |
"*.pyc", | |
"*.pyo", |
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
// Put this in a separate .h file (called "getopt.h"). | |
// The prototype for the header file is: | |
/* | |
#ifndef GETOPT_H | |
#define GETOPT_H | |
int getopt(int nargc, char * const nargv[], const char *ostr) ; | |
#endif | |
*/ |
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
TASKN=1 | |
run: Task$(TASKN).exe | |
dosbox -c "A:" -c "cd TASK$(TASKN)" -c "TASK$(TASKN).EXE" -c "exit" | |
# Linker | |
Task$(TASKN).exe: Task$(TASKN).obj | |
wine ~/WApp/RAD/masm32/Bin/DOSLNK.EXE "Task$(TASKN).obj","Task$(TASKN).exe","Task$(TASKN).map",,, | |
# Compiler |
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
// ==UserScript== | |
// @name formAdder | |
// @description Добавляем возможность подстановки пароля в форму логина СБРС мехмата ЮФУ | |
// @author ulysses, dummer <yadummer@gmail.com> | |
// @license MIT | |
// @version 1.3 | |
// @include http://rating.mmcs.sfedu.ru/ | |
// @include http://rating.mmcs.sfedu.ru/sign | |
// @include https://rating.mmcs.sfedu.ru/ | |
// @include https://rating.mmcs.sfedu.ru/sign |
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
cmake_minimum_required(VERSION 3.1) | |
project(features) | |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") | |
set(SOURCE_FILES main.cpp) | |
add_executable(features ${SOURCE_FILES}) | |
set(OpenCV_LIBS opencv_core opencv_imgproc opencv_highgui opencv_xfeatures2d opencv_features2d opencv_imgcodecs opencv_flann) | |
target_link_libraries( features ${OpenCV_LIBS} ) |
OlderNewer