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 "Simd.h" | |
| #include "Windows.h" | |
| using namespace SharpDX::SIMD; | |
| #pragma unmanaged | |
| void getCpuId(unsigned int* _ecx, unsigned int* _edx) | |
| { | |
| unsigned int output_ecx; |
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 net.jp.oguna.szz.github; | |
| import java.io.File; | |
| import java.io.FileWriter; | |
| import java.io.IOException; | |
| import java.text.SimpleDateFormat; | |
| import java.util.HashMap; | |
| import java.util.Map; | |
| import org.eclipse.egit.github.core.Issue; |
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 org.eclipse.jdt.core; | |
| import org.eclipse.jdt.internal.compiler.CompilationResult; | |
| import org.eclipse.jdt.internal.compiler.IErrorHandlingPolicy; | |
| import org.eclipse.jdt.internal.compiler.IProblemFactory; | |
| import org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration; | |
| import org.eclipse.jdt.internal.compiler.ast.TypeDeclaration; | |
| import org.eclipse.jdt.internal.compiler.impl.CompilerOptions; | |
| import org.eclipse.jdt.internal.compiler.parser.Parser; | |
| import org.eclipse.jdt.internal.compiler.problem.DefaultProblemFactory; |
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
| sc07B & j:: Send, {Blind}{Left} | |
| sc07B & k:: Send, {Blind}{Down} | |
| sc07B & l:: Send, {Blind}{Right} | |
| sc07B & i:: Send, {Blind}{Up} | |
| sc07B & Space:: Send, {Blind}{Enter} | |
| sc07B & sc079:: Send, {Blind}{Esc} | |
| sc07B:: Send {Blind}{sc07B} | |
| sc079:: Send {Blind}{sc079} |
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
| # encoding: UTF-8 | |
| from string import Template | |
| import os | |
| with open('src/layout.html') as template_file: | |
| s = Template(template_file.read()) | |
| for content_file in os.listdir('src/content'): | |
| with open('src/content/'+content_file) as input_file: |
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
| import static org.eclipse.jdt.internal.compiler.parser.TerminalTokens.*; | |
| import java.io.File; | |
| import java.io.FileReader; | |
| import java.io.FileWriter; | |
| import org.eclipse.jdt.internal.compiler.parser.Scanner; | |
| public class JavaTokenizer { | |
| public static void main(String[] args) throws Exception { |
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
| public class MandelCalc { | |
| static class Complex { | |
| public final double r; | |
| public final double i; | |
| public Complex(double r, double i) { | |
| this.r = r; | |
| this.i = i; | |
| } |
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 cdtparser; | |
| import java.io.FileNotFoundException; | |
| import java.io.FileReader; | |
| import java.io.IOException; | |
| import java.util.Map; | |
| import org.eclipse.cdt.core.dom.ast.ASTVisitor; | |
| import org.eclipse.cdt.core.dom.ast.IASTDeclarator; | |
| import org.eclipse.cdt.core.dom.ast.IASTTranslationUnit; |
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
| import scala.util.parsing.combinator.RegexParsers | |
| object CaslParser extends RegexParsers { | |
| override def skipWhitespace = false | |
| def chrExcept(cs: Char*) = elem("", ch => cs forall (ch != _)) | |
| def label = """[A-Z][A-Z0-9]*""".r | |
| def space = """\s+""".r |
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
| object BitVal { | |
| implicit class BitInt(val self: Int) extends AnyVal { | |
| @inline | |
| def on(place: Int): Int = self | (1 << place) | |
| @inline | |
| def off(place: Int): Int = self & ~(1 << place) | |
| @inline |