Install Package Control for easy package management.
- Open the console with
Ctrl+`
- Paste in the following:
import React, {Component, PropTypes} from 'react' | |
import _ from 'lodash' | |
import ReactDOM from 'react-dom' | |
function getRatio () { | |
const multi = ['414x736', '375x667'].indexOf(`${window.innerWidth}+${window.innerHeight}`) !== -1 ? 2 : 1 | |
// iPhone6 || iPhone6p | |
return (window.devicePixelRatio || 1) * multi | |
} |
// sending to sender-client only | |
socket.emit('message', "this is a test"); | |
// sending to all clients, include sender | |
io.emit('message', "this is a test"); | |
// sending to all clients except sender | |
socket.broadcast.emit('message', "this is a test"); | |
// sending to all clients in 'game' room(channel) except sender |
sudo apt-get remove scala-library scala | |
sudo wget www.scala-lang.org/files/archive/scala-2.10.4.deb | |
sudo dpkg -i scala-2.10.4.deb | |
sudo apt-get update | |
sudo apt-get install scala | |
wget http://scalasbt.artifactoryonline.com/scalasbt/sbt-native-packages/org/scala-sbt/sbt/0.12.4/sbt.deb | |
sudo dpkg -i sbt.deb | |
sudo apt-get update | |
sudo apt-get install sbt |
Install Package Control for easy package management.
Ctrl+`
{"lastUpload":"2019-12-26T04:46:23.045Z","extensionVersion":"v3.4.3"} |