-
name of the current banch and nothing else (for automation)
git rev-parse --abbrev-ref HEAD
-
all commits that your branch have that are not yet in master
git log master..<HERE_COMES_YOUR_BRANCH_NAME>
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
#!/usr/bin/env node | |
import colors from 'tailwindcss/colors.js'; | |
const res = []; | |
for (const color in colors) { | |
const colorVariants = colors[color]; | |
if (typeof(colorVariants) !== 'object') { | |
continue; | |
} |
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
using UnityEngine; | |
public class CustomParticleCulling : MonoBehaviour | |
{ | |
public float cullingRadius = 10; | |
public ParticleSystem target; | |
CullingGroup m_CullingGroup; | |
Renderer[] m_ParticleRenderers; |
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
#![feature(generators, generator_trait)] | |
use std::ops::Generator; | |
use std::mem::size_of; | |
fn test() -> impl Generator<Yield=(), Return=()> { | |
return || { | |
let a: String = "test".into(); | |
yield (); | |
println!("{}", a); |
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
#![feature(generators, generator_trait)] | |
use std::ops::Generator; | |
use std::mem::size_of; | |
fn test() -> impl Generator<Yield=(), Return=()> { | |
return || { | |
yield (); | |
} | |
} |
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::marker::PhantomData; | |
use std::mem; | |
use std::ops::Add; | |
// Represents a pointer to a field of type `U` within the type `T` | |
#[derive(Debug)] | |
struct FieldOffset<T, U>( | |
// Offset in bytes of the field within the struct | |
usize, |
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
// fast version does not includes shaders and filters | |
var webpack = require('webpack'); | |
var path = require('path'); | |
module.exports = { | |
entry: './src/game.js', | |
output: { | |
filename: 'build/game.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
use std::slice::Iter; | |
trait Test { | |
fn hello(&self); | |
} | |
impl Test for i32 { | |
fn hello(&self) { | |
println!("i32 {}", self); | |
} |
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
trait Test { | |
fn toto(&self) -> String; | |
} | |
impl Test for uint { | |
fn toto(&self) -> String { | |
"uint".to_string() | |
} | |
} |
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 "ptr_like.hpp" | |
int main() | |
{ | |
vector<int> t {1, 2}; | |
} |
NewerOlder