Edit: moved to here https://blog.haicon.moe/posts/logitech-f310-to-work-with-macbook-usb-c-port/
| package main | |
| import ( | |
| "bytes" | |
| "crypto/tls" | |
| "encoding/xml" | |
| "fmt" | |
| "io/ioutil" | |
| "net/http" | |
| "strings" |
| Key Sublime Text 3.2.1 Build 3207 | |
| ----- BEGIN LICENSE ----- | |
| Member J2TeaM | |
| Single User License | |
| EA7E-1011316 | |
| D7DA350E 1B8B0760 972F8B60 F3E64036 | |
| B9B4E234 F356F38F 0AD1E3B7 0E9C5FAD | |
| FA0A2ABE 25F65BD8 D51458E5 3923CE80 | |
| 87428428 79079A01 AA69F319 A1AF29A4 | |
| A684C2DC 0B1583D4 19CBD290 217618CD |
08/16/17 by Sergey Grebenshchikov
This is a quick tutorial on how to test code using the GoMock mocking library and the standard library testing package testing.
GoMock is a mock framework for Go. It enjoys a somewhat official status as part of the github.com/golang organization, integrates well with the built-in testing package, and provides a flexible expectation API.
In this challenge you will create a tags and notes_tags table which will setup a many-to-many relationship between notes and tags. You'll also create a new router to perform CRUD operations on the tags, and update the existing notes endpoints to work with tag related data.
To get started, let's update the .sql script from the previous challenges. Create a tags table and define 2 fields in the schema.
- Get files from directory
string[] filePaths = Directory.GetFiles(@"C:\path\to\file");
foreach (var item in filePaths)
{
Console.WriteLine(item);
}| namespace ConsoleApp | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| var message = new MimeMessage(); | |
| var bodyBuilder = new BodyBuilder(); | |
| // from |
- Create certificate
- Config Apache to access
httpsinstead ofhttp - Config mod rewrite to generate SSL url
- Config Virtual host to test site
- Go to your XAMPP installation directory (in my case it’s E:\xampp), figure out apache folder. In this, find & run batch file
| <!-- modal --> | |
| <div class="modal" id="modal" tabindex="-1" role="dialog"> | |
| <div class="modal-dialog modal-md" role="document"> | |
| <div class="modal-content"> | |
| <div class="modal-header"> | |
| <button | |
| href="javascript.void(0);" | |
| class="btn btn-danger pull-right" | |
| data-dismiss="modal" | |
| aria-label="Close" |