Skip to content

Instantly share code, notes, and snippets.

@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;
}
}
name: "ResNet-20"
layer {
name: "data"
type: "Data"
top: "data"
top: "label"
include {
phase: TRAIN
}
transform_param {
#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 {
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();
@kevinptt0323
kevinptt0323 / copy_instanceid.py
Last active January 25, 2024 19:52
This script fixes the issue that getting stuck at loading screen for PalWorld Dedicated Server.
#!/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.