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::{ | |
alloc::{self, Layout}, | |
mem::MaybeUninit, | |
ops::Deref, | |
ptr::NonNull, | |
sync::atomic::{self, AtomicUsize, Ordering}, | |
}; | |
// use repr(C) to ensure field order | |
#[repr(C)] |
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 packed_simd::{f32x2, m32x2}; | |
use rand::Rng; | |
use crate::math::FastVector; // for fast_floor, you can use your own | |
/// PJ/PGify only works on outputs with a length 4^N | |
/// | |
/// https://helloacm.com/how-to-check-if-integer-is-power-of-four-cc/ | |
pub fn is_power_of_four(n: u64) -> bool { |
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 <thenable/thenable.hpp> | |
#include <thenable/experimental.hpp> | |
#include <iostream> | |
using namespace std; | |
using namespace thenable; | |
using namespace thenable::experimental; | |
int i = 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
#define UV_OVERLOAD_OSTREAM | |
#define UV_USE_BOOST_LOCKFREE | |
#include "uv++.hpp" | |
#include <iostream> | |
using namespace std; | |
int main() { |
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 <thread> | |
#define UV_OVERLOAD_OSTREAM | |
#include "uv++.hpp" | |
using namespace std; |
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 * as React from 'react'; | |
class MyWidget extends React.Component { | |
static displayName = 'MyWidget'; | |
static propTypes = { | |
itemUrl: React.PropTypes.string.isRequired, | |
name: React.PropTypes.string.isRequired | |
}; |
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
ReferenceError: Input is not defined | |
at AdvancedSearchForm.render (~/example.com/views/user/forms/advanced_search.jsx:50:42) | |
at ReactCompositeComponentMixin._renderValidatedComponentWithoutOwnerOrContext (~/example.com/node_modules/react/lib/ReactCompositeComponent.js:789:34) | |
at ReactCompositeComponentMixin._renderValidatedComponent (~/example.com/node_modules/react/lib/ReactCompositeComponent.js:816:14) | |
at wrapper [as _renderValidatedComponent] (~/example.com/node_modules/react/lib/ReactPerf.js:70:21) | |
at ReactCompositeComponentMixin.mountComponent (~/example.com/node_modules/react/lib/ReactCompositeComponent.js:237:30) | |
at wrapper [as mountComponent] (~/example.com/node_modules/react/lib/ReactPerf.js:70:21) | |
at Object.ReactReconciler.mountComponent (~/example.com/node_modules/react/lib/ReactReconciler.js:38:35) | |
at ReactDOMComponent.ReactMultiChild.Mixin.mountChildren (~/example.com/node_modules/react/lib/ReactMultiChild.js:192:44) | |
at ReactDOMComponent.Mixin |
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
<p>{{=it.content}}</p> |
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
<?php | |
use \Zend\Json\Json; | |
$zend_prefix = "WhereverZendIs/"; | |
include_once $zend_prefix."Json/Json.php"; | |
class Tree_Exception extends \Exception {} |
NewerOlder