I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
/** | |
* This software is in the public domain. Where that dedication is not recognized, | |
* you are granted a perpetual, irrevokable license to copy and modify this file | |
* as you see fit. | |
* | |
* Requires SDL 2.0.4. | |
* Devices that do not support Metal are not handled currently. | |
**/ | |
#import <UIKit/UIKit.h> |
// Step 1. Open default MIDI-device or die | |
int rc = midiOutOpen(&midi_device, 0, 0, 0, CALLBACK_NULL); | |
if (rc != MMSYSERR_NOERROR) { | |
return FALSE; | |
} | |
// Step 2. Set instrument for a channel (0..15) | |
DWORD command = (0x000000C0 | CHANNEL) | (INSTRUMENT << 8); | |
midiOutShortMsg(midi_device, command); |
#define STB_IMAGE_IMPLEMENTATION | |
#define STB_IMAGE_WRITE_IMPLEMENTATION | |
#define STBI_ONLY_PNG | |
#define STBI_ONLY_JPEG | |
#define STBI_ONLY_BMP | |
#define STBI_ONLY_GIF | |
#include "stb_image.h" | |
#include "stb_image_write.h" |
// The MIT License | |
// | |
// Copyright (c) 2015 Neil Webber | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights | |
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
// copies of the Software, and to permit persons to whom the Software is | |
// furnished to do so, subject to the following conditions: |
Are you let down when you saw there is no guide to use Windows Server 2016 under *nix environments? I really loved Microsoft when I heard they are working on Windows containers, but when this week has arrived, it was sad to see that installation requirements were Windows and HyperV. But actually it is not. You just have to modify the VHD file a bit with nicer tools and execute the already available script in the downloaded VM. I will assume you are running a decent version of Linux and accepted EULA and all the legal stuff that I do not care.
$ sudo apt-get install qemu-kvm virt-manager // or virtualbox, but we need qemu-kvm for image manipulation
$ sudo apt-get install qemu-utils libguestfs-tools // image manipulation tools
#Project Tigr Books
Getting more young people interested in technology is vital for the sustainability of the tech industry in Bath and Bristol. We've written here before about what we're doing teaching in the Bath area, and why other people should start helping us too.
We're now on kickstarter with a project to turn some of our online materials into physical books to make it easier for more people to teach their own friends and family to code. Our materials are not a railroad of instructions, unlike most typical code websites where everyone makes exactly the same thing; however they inspire creativity and everyone makes something different. For example, one book will teach creating your own interactive emoji. Our materials are also accessible
TileTable = { | |
{ 1, 1, 1, 1, 1, 1, 1 }, | |
{ 1, 1, 1, 1, 1, 1, 1 }, | |
{ 1, 1, 1, 1, 1, 1, 1 }, | |
{ 2, 2, 2, 2, 2, 2, 2 }, | |
{ 3, 3, 3, 3, 3, 3, 3 }, | |
{ 4, 4, 4, 4, 4, 4, 4 }, | |
{ 5, 5, 5, 5, 5, 5, 5 }, | |
{ 5, 5, 5, 5, 5, 5, 5 }, | |
{ 5, 5, 5, 5, 5, 5, 5 }, |
#include <iostream> | |
struct A {}; | |
std::string to_string(const A&) | |
{ | |
return "I am a A!"; | |
} | |
// Type B with a serialize method. |
##1 starting
Firstly, using terminal install YQL and request if you don't have it already:
npm install request
npm install yql
Create a new .js file - make sure you can navigate to it with the terminal prompt to run.