-
download the installer available here:
-
Run the installer, the default options are fine
- (you might want to create shortcuts on the desktop for Xming and XLaunch)
-
Launch Xming
- on your first launch, it will ask you which types of networks you want to allow... if you work in a lot of coffee shops, you should also include Public Networks (excluded by default)
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
import './style.css' | |
import * as THREE from 'three' | |
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js' | |
import { STLLoader } from 'three/examples/jsm/loaders/STLLoader.js' | |
import { STLExporter } from 'three/examples/jsm/exporters/STLExporter.js' | |
import { OBJExporter } from 'three/examples/jsm/exporters/OBJExporter.js' | |
import { SimplifyModifier } from 'three/examples/jsm/modifiers/SimplifyModifier.js' | |
import * as dat from 'lil-gui' | |
//V1.2.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
default: target1 | |
# no commands | |
target1: target2 | |
@echo "Running target 1" | |
target2: target3 | |
@echo "Running target 2" | |
target3: |
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
default: target1 target2 target3 | |
# no commands | |
target1: | |
@echo "Running target 1" | |
target2: | |
@echo "Running target 2" | |
target3: |
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
// pseudo-ish code for the simple on/off state machine | |
// define all possible states | |
enum State { | |
ON, | |
OFF | |
}; | |
// define all possible transitions (including NONE) | |
enum Transition { |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Security.Cryptography.X509Certificates; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace LambdaTest2 | |
{ | |
class Program |
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
// compile with | |
// gcc pointers.c | |
#include <stdio.h> | |
typedef struct { | |
int x; | |
int y; | |
} point_t; |
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
[HttpPost] | |
public IActionResult Contact(ContactViewModel model) | |
{ | |
var email = Startup.Configuration["AppSettings:SiteEmailAddress"]; | |
if (string.IsNullOrWhiteSpace(email)) | |
{ | |
ModelState.AddModelError("", "Unable to send message: invalid server configuration."); | |
} |
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 <stdio.h> | |
typedef struct { | |
int a; | |
int b; | |
char c; | |
} unpadded_t; | |
typedef struct { | |
unpadded_t data; |
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 <stdio.h> | |
typedef struct { | |
int x; | |
int y; | |
} point_t; | |
void printPoint(point_t p) { | |
printf("X: %d, Y: %d\n", p.x, p.y); | |
} |