- Install target mingw-w64:
brew install mingw-w64
- Add target to rustup:
rustup target add x86_64-pc-windows-gnu
- Create
.cargo/config
- Add the instructions below to
.cargo/config
[target.x86_64-pc-windows-gnu]
brew install mingw-w64
rustup target add x86_64-pc-windows-gnu
.cargo/config
.cargo/config
[target.x86_64-pc-windows-gnu]
pub mod fallback { | |
use std::ptr; | |
use crate::traits::{SimdF32, SimdMask32}; | |
impl SimdF32 for f32 { | |
type Raw = f32; | |
type Mask = u32; |
use std::sync::{Mutex, Arc}; | |
use std::thread; | |
use std::time::Instant; | |
fn main() { | |
let threaded_counter = Arc::new(Mutex::new(0)); | |
let mut handles = vec![]; | |
let timer = Instant::now(); | |
for _ in 0..2 { |
processor : 0 | |
vendor_id : GenuineIntel | |
cpu family : 6 | |
model : 60 | |
model name : Intel Core Processor (Haswell, no TSX) | |
stepping : 1 | |
microcode : 0x1 | |
cpu MHz : 2194.834 | |
cache size : 4096 KB | |
physical id : 0 |
pub mod env { | |
#[derive(Copy, Clone, Debug, PartialOrd, PartialEq)] | |
pub enum EnvOption { | |
PROD, | |
DEV, | |
} | |
pub const ENV: EnvOption = EnvOption::PROD; | |
pub fn is_prod() -> bool { |
<?php | |
namespace App\Database\Schema; | |
use Illuminate\Database\Schema\Blueprint as ParentBlueprint; | |
use Illuminate\Support\Facades\DB; | |
/** | |
* Class Blueprint | |
* |
This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.
###Array ####Definition:
static String format(String fmt,List<Object> params) { | |
int matchIndex = 0; | |
String replace(Match m) { | |
if (matchIndex<params.length) { | |
switch (m[4]) { | |
case "f": | |
num val = params[matchIndex++]; | |
String str; | |
if (m[3]!=null && m[3].startsWith(".")) { | |
str = val.toStringAsFixed(int.parse(m[3].substring(1))); |
import 'dart:io'; | |
import 'dart:math'; | |
import 'dart:collection'; | |
Line marsGround; | |
State marsLanderInitState; | |
// todo set you hostname for debugging | |
List<String> localHosts = []; |
git filter-branch --force --index-filter \ | |
'git rm -r --cached --ignore-unmatch $1' \ | |
--prune-empty --tag-name-filter cat -- --all |