Install Package Control for easy package management.
- Open the console with
Ctrl+`
- Paste in the following:
{"lastUpload":"2019-12-26T04:46:23.045Z","extensionVersion":"v3.4.3"} |
Install Package Control for easy package management.
Ctrl+`
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 |
// 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 |
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 | |
} |
#!/bin/bash - | |
set -o nounset # Treat unset variables as an error | |
port=3002 | |
search=false | |
RAILS_ENV=${RAILS_ENV:-development} | |
while getopts p:e:rw:s opt | |
do |
# Add to nginx.conf http section | |
map $http_upgrade $connection_upgrade { | |
default upgrade; | |
'' close; | |
} |
http://guides.rubyonrails.org/migrations.html
hey.i-feng.org |