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
<div class="container"> | |
@if (true) | |
{ | |
<article class="post"> | |
<div class="post-cover"> | |
<img src=""> | |
@if (true) | |
{ | |
<span class="post-featrued-label"></span> | |
} |
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
package com.jetbrains.rider.ideaInterop.fileTypes.csharp | |
import com.intellij.lang.Language | |
import com.intellij.lang.LanguageAnnotators | |
import com.intellij.lang.annotation.AnnotationHolder | |
import com.intellij.lang.annotation.Annotator | |
import com.intellij.openapi.editor.markup.TextAttributes | |
import com.intellij.psi.PsiElement | |
import com.intellij.psi.impl.source.tree.LeafPsiElement | |
import com.intellij.ui.JBColor |
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
ReSharper.UNRESOLVED_ERROR | |
ReSharper.ERROR | |
ReSharper.WARNING | |
ReSharper.SUGGESTION | |
ReSharper.HINT | |
ReSharper.COMMENT | |
ReSharper.KEYWORD | |
ReSharper.NUMBER | |
ReSharper.STRING | |
ReSharper.TEXT |
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; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Net; | |
using System.Security.Cryptography; | |
using System.Text; | |
using System.Text.RegularExpressions; | |
namespace tweet |
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; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Text; | |
using TweetSharp; | |
namespace CsharpPoster | |
{ | |
static class TwitterSettings | |
{ |
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
let oops = (<|) (<|) (<|) (<|) (<|) (<|) (<|) (<|) (<|) (<|) (<|) (<|) (<|) (<|) (<|) (<|) (<|) (<|) (<|) | |
let two = oops (+) 1 1 |
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
open System | |
let L = 14. // Space between wheels || Your values might be quite different | |
let R = 2.7 // Wheel's radius || | |
let ticksPerRotation = 12000. // ~ amount of ticks is taken by one full rotation | |
let desiredAngle = int ((L/R/4.) * ticksPerRotation) // Math routine to calculate how many ticks is taken to turn | |
type Direction = Forward | Backward | Left | Right | |
// <Twitter boilerplate part> |
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; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace Different | |
{ | |
class Program | |
{ | |
private static bool AllDifferent(IEnumerable<int> xs) | |
{ |
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; | |
using System.Linq; | |
using System.Collections.Generic; | |
namespace Merge | |
{ | |
class Program | |
{ | |
public static IEnumerable<int> Merge(IEnumerable<int> a, IEnumerable<int> b) | |
{ |
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
data Polynomnom = P [Int] | |
instance Show Polynomnom where | |
show (P polynom) = | |
let showp (P []) = "" | |
showp (P xs) = nom ++ showp (P (init xs)) | |
where nom | |
| x == 0 = "" | |
| x < 0 = "-" ++ show (abs x) ++ temp | |
| otherwise = "+" ++ (if (x == 1) then "" else (show (abs x))) ++ temp | |
where x = last xs |
NewerOlder