This file contains 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
#!/usr/bin/env python3 | |
""" | |
This script fixes the issue that getting stuck at loading screen for PalWorld | |
Dedicated Server. | |
Follow the following steps on the device running dedicated server unless the | |
instruction describes explicitly. | |
1. Backup the save data folder in /Pal/Saved/SaveGames/0/<Random String>/Players. | |
2. Delete all files in "Players" folder. |
This file contains 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
var ws = new WebSocket('ws://linux4.cs.nctu.edu.tw:9773/ptt'); | |
ws.onopen = function(evt) { | |
console.log('Connection open ...'); | |
ws.send('Hello WebSockets!'); | |
}; | |
ws.onmessage = function(evt) { | |
console.log('Received Message: ' + evt.data); | |
ws.close(); |
This file contains 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
#include <algorithm> // to use sort | |
#include <cmath> | |
#include <limits> | |
#include <iostream> | |
#include <cstdio> | |
using namespace std; | |
// our coordiante will be in form of structures as follow: | |
struct Point { |
This file contains 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
name: "ResNet-20" | |
layer { | |
name: "data" | |
type: "Data" | |
top: "data" | |
top: "label" | |
include { | |
phase: TRAIN | |
} | |
transform_param { |
This file contains 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
@ipad: ~"only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (-webkit-min-device-pixel-ratio: 1)"; | |
@mobile: ~"only screen and (max-device-width: 767px)"; | |
@media @ipad, @mobile { | |
#masthead .header-image { | |
background-attachment: scroll; | |
} | |
} |