This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
private static class ReadOnlyIntefaceBuilderWorkflow | |
{ | |
public static WorkflowResult Start([CanBeNull] CSharpGeneratorContext context, CSharpElementFactory factory) | |
{ | |
if (context.ClassDeclaration == null) return WorkflowResult.Inapplicable; | |
return CreateNewInterfaceDeclaration(context, factory); | |
} | |
private static WorkflowResult CreateNewInterfaceDeclaration(CSharpGeneratorContext context, CSharpElementFactory factory) | |
{ |
This file contains hidden or 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 System; | |
namespace ConsoleApplication1 | |
{ | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Runtime.CompilerServices; | |
using Annotations; | |
public class CheckBoxElement : INotifyPropertyChanged, IEquatable<CheckBoxElement> |
This file contains hidden or 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
x*(a*x + b) + c |
This file contains hidden or 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
a*x*x + b*x + c |
This file contains hidden or 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 System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using JetBrains.ReSharper.Psi.CSharp.Tree; | |
namespace ActiveMesa.R2P.Maths.Factor | |
{ | |
using System; | |
using JetBrains.Application.Progress; | |
using JetBrains.ProjectModel; |