Skip to content

Instantly share code, notes, and snippets.

View moritzuehling's full-sized avatar

Moritz moritzuehling

  • 18:54 (UTC +02:00)
View GitHub Profile
@moritzuehling
moritzuehling / GetCSGODir.cs
Created December 12, 2015 23:08
Gets the folder where CS:GO is installed.
/// <summary>
/// Returns the location of the CS:GO installation, or null if it's unable to find it.
/// </summary>
/// <returns></returns>
private string GetCSGODir()
{
string steamPath = (string)Registry.GetValue("HKEY_CURRENT_USER\\Software\\Valve\\Steam", "SteamPath", "");
string pathsFile = Path.Combine(steamPath, "steamapps", "libraryfolders.vdf");
if (!File.Exists(pathsFile))
moritz:~$ cat program.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TestProject
{
class Program
class App extends React.Component<any, any> {
public render() {
return (
<Router>
<Route path="/" component={HomePage}>
</Route>
</Router>
);
}
}
#include "FastLED.h"
#define NUM_LEDS 120
#define DATA_PIN 6
CRGB leds[NUM_LEDS];
void setup() {
FastLED.addLeds<NEOPIXEL, DATA_PIN>(leds, NUM_LEDS);
for(int i = 0; i < NUM_LEDS; i++) {
leds[i].red = 5;
declare module 'react-input-range' {
export = ReactInputRange.InputRange;
}
declare namespace ReactInputRange {
interface IRange {
min: number;
max: number;
}
8497501
8497700
8497800
8497900
8498000
8498100
8498200
8498300
8498400
8498500
// LICENSE: MIT
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;