Skip to content

Instantly share code, notes, and snippets.

codeStatementCollection
.OfType<CodeExpressionStatement>()
.Select(e => new
{
ExpressionStatement = e,
MethodInvokeExpression = e.Expression as CodeMethodInvokeExpression
})
.Where(a => a.MethodInvokeExpression?.Method != null &&
a.MethodInvokeExpression.Method.MethodName == "Add")
.Select(a => new {a.ExpressionStatement, a.MethodInvokeExpression, a.MethodInvokeExpression.Method})
var funcProviderType = typeof(IFunctionProviderService);
_services = AppDomain.CurrentDomain.GetAssemblies()
.SelectMany(s => s.GetTypes())
.Where(p => funcProviderType.IsAssignableFrom(p) && p.IsClass && !p.IsAbstract)
.ToArray();
using System.Collections.Generic;
namespace Sorter
{
/// <summary>
/// Comparer for manual sorting
/// </summary>
/// <typeparam name="T"></typeparam>
public class ManualSortComparer<T> : IComparer<T>
{
D:\Projects\git\rust\growingtree-maze>cargo b >cargo-build.log
Compiling growingtree-maze v0.1.0 (file:///D:/Projects/git/rust/growingtree-maze)
error[E0609]: no field `factory` on type `three::window::WindowBuilder`
--> src\main.rs:45:19
|
45 | let cam = win.factory.perspective_camera(75.0, 1.0, 1000.0);
| ^^^^^^^ unknown field
error[E0609]: no field `scene` on type `three::window::WindowBuilder`
--> src\main.rs:46:9
<ComboBox ItemsSource="{Binding Path=Scale}"
SelectedItem="{Binding Path=PrecisionScale}"
SelectedIndex="0"
IsEditable="True"
IsReadOnly="False"
Margin="0,6"/>
let backlog = if let Some(bcklg) = std::env::var("RUST_NET_BACKLOG") {
// parse bcklg string into i32 value
// here is parsing function (i dont know how it must look in real, I forgot it)
i32::parse(bcklg).unwrap_or(128)
} else {
128
};
Sherzod Mutalov@SHMUTALOV MINGW64 /d/Projects/git/rust/glfw-test
$ cargo b
Compiling num v0.1.37
Compiling glfw-sys v3.2.1
error: failed to run custom build command for `glfw-sys v3.2.1`
process didn't exit successfully: `D:\Projects\git\rust\glfw-test\target\debug\build\glfw-sys-2d3173dd65b55439\build-script-build` (exit code: 101)
--- stdout
running: "cmake" "C:\\Users\\Sherzod Mutalov\\.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\glfw-sys-3.2.1\\." "-G" "MSYS Makefiles" "-DGLFW_BUILD_EXAMPLES=OFF" "-DGLFW_BUILD_TESTS=OFF" "-DGLFW_BUILD_DOCS=OFF" "-DCMAKE_INSTALL_PREFIX=D:\\Projects\\git\\rust\\glfw-test\\target\\debug\\build\\glfw-sys-bca201786ab4e788\\out" "-DCMAKE_C_FLAGS= -ffunction-sections -fdata-sections -m64" "-DCMAKE_CXX_FLAGS= -ffunction-sections -fdata-sections -m64" "-DCMAKE_BUILD_TYPE=Debug"
-- Configuring incomplete, errors occurred!
Sherzod Mutalov@SHMUTALOV MINGW64 /d/Projects/git/rust/discord-test
$ pacman -S mingw-w64-x86_64-pkg-config mingw-w64-x86_64-libsodium mingw-w64-x86 _64-gcc mingw-w64-x86_64-openssl mingw-w64-x86_64-opus
разрешение зависимостей...
проверка конфликтов...
предупреждение: обнаружена циклическая зависимость:
предупреждение: mingw-w64-x86_64-gcc-libgfortran будет установлен перед mingw-w6 4-x86_64-gcc-libs, как зависимость
Пакеты (26) mingw-w64-x86_64-binutils-2.27-2 mingw-w64-x86_64-bzip2-1.0.6-5
mingw-w64-x86_64-ca-certificates-20150426-2
mingw-w64-x86_64-crt-git-5.0.0.4745.d2384c2-1
[root@localhost hxe]# strings /usr/lib64/libstdc++.so.6 | grep GLIBCXX
GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
@shmutalov
shmutalov / rustup-update.md
Created April 5, 2017 06:40
Just updated to the latest Rust version
PS C:\Users\Sherzod Mutalov> rustup.exe update
info: syncing channel updates for 'stable-x86_64-pc-windows-gnu'
info: downloading component 'rustc'
 36.5 MiB /  36.5 MiB (100 %) 238.5 KiB/s ETA:   0 s
info: downloading component 'rust-std'
 51.8 MiB /  51.8 MiB (100 %)  92.8 KiB/s ETA:   0 s
info: downloading component 'cargo'
  4.3 MiB /   4.3 MiB (100 %) 172.8 KiB/s ETA:   0 s
info: downloading component 'rust-mingw'