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
# | |
# adapted from freetronics by laurent mardi 11/08/2015 | |
# from : http://www.freetronics.com.au/pages/leostick-getting-started-guide#linux_uploading | |
# | |
#----------------------------------------------- | |
# disable modem manager for usb arduino leonardo | |
#----------------------------------------------- | |
# new linux version check for modem after plug an usb cdc device | |
# this take time and after disable the cdc serial port. | |
# |
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
# building Visual Studio Code Debian package on ARM | |
# get source code | |
git clone [email protected]:Microsoft/vscode.git | |
cd vscode | |
# build debian package | |
./scripts/npm.sh install --arch=armhf | |
./node_modules/.bin/gulp vscode-linux-arm-build-deb |
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
sudo apt-get uninstall nodejs # uninstall nodejs 4.2.6 | |
wget https://nodejs.org/dist/v6.6.0/node-v6.6.0-linux-armv7l.tar.gz # get latest ARM build | |
tar -xvf node-v6.6.0-linux-armv7l.tar.gz # extract it | |
sudo cp node-v6.6.0-linux-armv7l /etc/node6.6 # copy extracted file to /etc folder | |
sudo ln -s /etc/node6.6/bin/node /usr/bin/node # link the nodejs executable | |
sudo ln -s /etc/node6.6/bin/npm /usr/bin/npm # link the npm executable | |
node --version # should output v6.6.0 |
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 void DoStuff(object input) | |
{ | |
if (input == null) | |
throw new ArgumentNullException("input"); | |
// Method implementation... | |
} |
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 QtQuick 2.7 | |
import QtQuick.Controls 2.0 | |
import QtQuick.Layouts 1.0 | |
ApplicationWindow { | |
visible: true | |
width: 640 | |
height: 480 | |
title: qsTr("Hello World") |
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
{ | |
"swagger": "2.0", | |
"info": { | |
"version": "v1", | |
"title": "Leaderboard API" | |
}, | |
"basePath": "/", | |
"paths": { | |
"/api/Values": { | |
"get": { |
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
{ | |
"generatedBy": "Microsoft.NET.Sdk.Functions-1.0.0.0", | |
"configurationSource": "attributes", | |
"bindings": [ | |
{ | |
"type": "eventHubTrigger", | |
"path": "default", | |
"connection": "EventHub", | |
"name": "myEventHubMessage" | |
} |
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
using System.Console; | |
public class Test | |
{ | |
public Test() | |
{ | |
Console.WriteLine("Let's test it"); | |
} | |
} |
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
using System; | |
public class Logger | |
{ | |
public void Info(string msg) | |
{ | |
Console.WriteLine(msg); | |
} | |
} |
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 static class Services | |
{ | |
public static AdService ads { get; set; } | |
public static APIService api { get; set; } | |
// tons of other services | |
public static AnalyticsService analytics { get; set; } | |
} | |
public class Loader : MonoBehaviour { | |
private void Awake() |