Thank you! Comments are welcome. :)
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 886643475ed685d3c00d69073365b56950100216 Mon Sep 17 00:00:00 2001 | |
From: Nikita Baksalyar <[email protected]> | |
Date: Mon, 18 Jun 2012 05:16:09 +0500 | |
Subject: Fix for multiple rows selection using 'Shift' and arrow keys on grids without 'multiSelect'. | |
--- | |
plugins/slick.rowselectionmodel.js | 4 ++++ | |
1 files changed, 4 insertions(+), 0 deletions(-) | |
diff --git a/plugins/slick.rowselectionmodel.js b/plugins/slick.rowselectionmodel.js |
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
(ns drunkard) | |
; Actor | |
(defprotocol Actor | |
(actor-action [this world])) | |
(defn actor-update [actor world] | |
(assoc-in world [:actors (:id actor)] actor)) | |
(defn actor-move [actor world x y] |
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
В цепи у велосипеда Тьюринга дефектное звено. В заднем колесе погнута одна спица. Когда | |
звено задевает спицу, цепь сваливается и падает на дорогу. Это происходит не при каждом | |
обороте колеса — иначе велосипед проще было бы выкинуть. Это происходит при | |
определенном взаимном расположении цепи и колеса. | |
Исходя из разумного предположения, что доктор Тьюринг находится в хорошей спортивной | |
форме и развивает скорость примерно 25 км/час, а радиус колеса — примерно треть метра, | |
если бы дефектное звено задевало гнутую спицу при каждом обороте колеса, то цепь | |
сваливалась бы каждую третью долю секунды. |
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
/* Polyalphabetic encryption - Enigma-like. */ | |
#include <stdio.h> | |
#include <string.h> | |
char *alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; | |
unsigned long rand = 42; | |
#define RNG_M 4294967296 |
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
[package] | |
name = "rust-chat" | |
version = "0.1.0" | |
authors = ["Nikita Baksalyar <[email protected]>"] | |
[dependencies] | |
http-muncher = "0.2.*" | |
sha1 = "0.1.*" | |
rustc-serialize = "0.3.*" | |
byteorder = "0.3.*" |
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
impl f64 { | |
// ... | |
#[stable(feature = "rust1", since = "1.0.0")] | |
#[inline] | |
pub fn ln(self) -> f64 { | |
if self.is_finite() { | |
if x > 0.0 { | |
return unsafe { intrinsics::logf64(self) } | |
} | |
return if x == 0.0 { |
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
"cc" "-m64" "-L" "/root/rust/build-1.11-rel/x86_64-sun-solaris/stage0/lib/rustlib/x86_64-sun-solaris/lib" "x86_64-sun-solaris/stage0/lib/rustlib/x86_64-sun-solaris/lib/rustc_llvm-fe3cdf61.0.o" "-o" "x86_64-sun-solaris/stage0/lib/rustlib/x86_64-sun-solaris/lib/librustc_llvm-fe3cdf61.so" "x86_64-sun-solaris/stage0/lib/rustlib/x86_64-sun-solaris/lib/rustc_llvm-fe3cdf61.metadata.o" "-Wl,-z" "-Wl,ignore" "-nodefaultlibs" "-L" "x86_64-sun-solaris/rt" "-L" "/root/rust/build-1.11-rel/x86_64-sun-solaris/llvm/lib" "-L" "/root/rust/build-1.11-rel/x86_64-sun-solaris/stage0/lib/rustlib/x86_64-sun-solaris/lib" "-Wl,-Bstatic" "-Wl,--whole-archive" "-l" "rustllvm" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "-l" "LLVMInterpreter" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "-l" "LLVMMCJIT" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "-l" "LLVMExecutionEngine" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "-l" "LLVMRuntimeDyld" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "-l" "LLVMipo" "-Wl,--no-whole-archive" "- |
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
// To compile this: | |
// g++ -lsafe_app test.cc | |
// Don't forget to put libsafe_app.so (or libsafe_app.dll, depending on your OS) with the source code. | |
#include <stdint.h> | |
#include <stdlib.h> | |
#include <iostream> | |
// https://docs.rs/ffi_utils/0.2.0/ffi_utils/struct.FfiResult.html |
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
thread 'Crust-Event-Loop' panicked at 'invalid key', /home/maidsafe/.cargo/registry/src/github.com-1ecc6299db9ec823/slab-0.4.2/src/lib.rs:798:18 | |
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace. | |
thread 'Crust-Event-Loop' panicked at 'invalid key', /home/maidsafe/.cargo/registry/src/github.com-1ecc6299db9ec823/slab-0.4.2/src/lib.rs:798:18 | |
stack backtrace: | |
0: 0x563176398923 - std::sys::unix::backtrace::tracing::imp::unwind_backtrace::hf8722b0178fb1b63 | |
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39 | |
1: 0x563176393fd8 - std::sys_common::backtrace::_print::hc40139e5f1d656ee | |
at src/libstd/sys_common/backtrace.rs:70 |
OlderNewer