#nano javascript syntax highlighting
The existing syntax highlighting is located in /usr/share/nano/
To add a new language
sudo nano /usr/share/nano/javascript.nanorc
Put the following in the contents:
@lazyglobal off. | |
function countdown { | |
parameter i. | |
lock STEERING to LOOKDIRUP(UP:VECTOR, FACING:TOPVECTOR). | |
lock THROTTLE to 1. | |
until i <= 0 { | |
HUDTEXT(i, 1, 4, 100, RED, false). |
# Stream 60 seconds of video to an mp4 file | |
sudo raspivid -o - -t 60000 -ex night -br 50 -w 1920 -h 1080 -rot 279 -fps 8 | sudo ffmpeg -r 8 -i - -y -vcodec copy /mnt/pi/camera/foo.mp4 |
#nano javascript syntax highlighting
The existing syntax highlighting is located in /usr/share/nano/
To add a new language
sudo nano /usr/share/nano/javascript.nanorc
Put the following in the contents:
This project has been moved to a GitHub repository to allow Pull Requests. | |
See: https://github.com/Ewpratten/youtube_ad_blocklist |
var net = require('net'); | |
// creates the server | |
var server = net.createServer(); | |
//emitted when server closes ...not emitted until all connections closes. | |
server.on('close',function(){ | |
console.log('Server closed !'); | |
}); |
/* | |
In the node.js intro tutorial (http://nodejs.org/), they show a basic tcp | |
server, but for some reason omit a client connecting to it. I added an | |
example at the bottom. | |
Save the following server in example.js: | |
*/ | |
var net = require('net'); |
using System; | |
using System.Net; | |
using System.Net.Sockets; | |
using System.Text; | |
namespace UDP | |
{ | |
public class UDPSocket | |
{ | |
private Socket _socket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp); |
// This work is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License. | |
// To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/4.0/ | |
// or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA. | |
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Net.Sockets; | |
using System.Text; | |
using System.Threading; | |
using UnityEngine; |
using UnityEngine; | |
using UnityEngine.UI; | |
using System.Collections; | |
public class NativeAndroidTextSharingInUnity : MonoBehaviour { | |
public Button shareButton; | |
private bool isFocus = false; | |
private bool isProcessing = false; |
Exhaustive list of SPDX (Software Package Data Exchange) licenses: https://spdx.org/licenses/