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 "cuda_runtime.h" | |
#include "device_launch_parameters.h" | |
#include <cmath> | |
using namespace std; | |
__device__ __inline__ float trim(unsigned char value) | |
{ | |
return fminf((unsigned char)255, fmaxf(value, (unsigned char)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
#include "cuda_runtime.h" | |
#include "device_launch_parameters.h" | |
#include <cmath> | |
using namespace std; | |
__device__ __inline__ float trim(unsigned char value) | |
{ | |
return fminf((unsigned char)255, fmaxf(value, (unsigned char)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
namespace ChangeThis | |
{ | |
using System; | |
using JetBrains.Application; | |
using JetBrains.Application.DataContext; | |
using JetBrains.Application.Progress; | |
using JetBrains.ReSharper.Feature.Services.ActionsMenu; | |
using JetBrains.ReSharper.Feature.Services.Generate; | |
using JetBrains.ReSharper.Feature.Services.Generate.Actions; | |
using JetBrains.ReSharper.Psi; |
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 <cstdio> | |
#include <vector> | |
#include <iostream> | |
using namespace std; | |
struct Neuron | |
{ | |
vector<Neuron*> in, out; | |
unsigned int id; |
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
wstring type_name(const wstring& tlon_type_name) override | |
{ | |
auto it = known_types.find(tlon_type_name); | |
if (it != known_types.end()) | |
return known_types[tlon_type_name]; | |
if (tlon_type_name.length() > 1 && | |
(tlon_type_name[0] == L'u' || tlon_type_name[0] == L'i')) | |
{ | |
try |
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
library ieee; | |
use ieee.std_logic_1164.all; | |
library ps; | |
use ps.hex_conv.all; | |
entity light is | |
port( | |
clock_50 : in std_logic; | |
hex0, hex1, hex2, hex3 : out std_logic_vector(0 to 6); | |
key : in std_logic_vector(0 to 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
library ieee; | |
use ieee.std_logic_1164.all; | |
entity combination_lock is | |
port ( | |
key : in std_logic_vector(3 downto 0); | |
hex3, hex2, hex1, hex0 : out std_logic_vector(0 to 6); | |
clock_50: in std_logic | |
); | |
end entity; |
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
public class MyClass | |
{ | |
static void Main(string[] args) | |
{ | |
Console.WriteLine("test"); | |
} | |
} |
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; | |
struct Person | |
{ | |
street_address: String, | |
postcode: String, | |
city: String, | |
company_name: String, | |
position: 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
use std::marker::PhantomData; | |
use std::rc::Rc; | |
use std::fmt::Display; | |
struct Person | |
{ | |
street_address: String, | |
postcode: String, | |
city: String, |