This file contains hidden or 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
extern crate laminar; | |
use std::thread; | |
use laminar::{Socket, Packet, SocketEvent}; | |
fn main() { | |
// create the socket | |
let server = thread::spawn(move || { | |
let (mut socket, _, packet_receiver) = Socket::bind("127.0.0.1:12346").unwrap(); |
This file contains hidden or 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
extern crate amethyst; | |
use amethyst::{ | |
prelude::*, | |
ecs::prelude::*, | |
network::*, | |
}; | |
fn main() -> amethyst::Result<()> { | |
let server = gen_game(true); |
This file contains hidden or 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
# pickling memory works appropriately, keeping references in-tact | |
import pickle | |
heap = ['original'] | |
to_pickle = {'one': heap, 'two': heap} | |
s = pickle.dumps(to_pickle) | |
from_pickle = pickle.loads(s) | |
from_pickle['one'][0] = 'changed' |
This file contains hidden or 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
process didn't exit successfully: `rustc --crate-name isolang /home/luna/.cargo/registry/src/github.com-1ecc6299db9ec823/isolang-0.2.1/src/lib.rs --color always --crate-type lib --emit=dep-info,link -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="serde"' --cfg 'feature="serde_serialize"' -C metadata=35b6b322fa2f06bd -C extra-filename=-35b6b322fa2f06bd --out-dir /home/luna/madlibs/target/debug/deps -L dependency=/home/luna/madlibs/target/debug/deps --extern phf=/home/luna/madlibs/target/debug/deps/libphf-3c7d5ba6b3e24e50.rlib --extern serde=/home/luna/madlibs/target/debug/deps/libserde-22347f0e065c6006.rlib --cap-lints allow` (signal: 9, SIGKILL: kill) |
This file contains hidden or 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 | |
""" | |
A script that go through your followings and unfollows dead accounts. | |
It notices empty accounts, accounts that were deleted locally and remotely, | |
and also cleans up dead instances if allowed to. | |
It has a cache so you can run it once without --unfollow to preview its | |
actions, and a second time that will skip all verified active profiles. | |
With colors and a nice progress bar with item count, %, and ETA. |
This file contains hidden or 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
~/src/mmmmm-clean master ✔ | |
▶ nvm version | |
v8.9.4 | |
~/src/mmmmm-clean master ✔ | |
▶ npm --version | |
5.6.0 | |
~/src/mmmmm-clean master ✔ | |
▶ npm i |
This file contains hidden or 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
> [email protected] build-android-debug /hdd/documents/src/mmmmm-mobile | |
> npm run build-android-assets && react-native run-android | |
> [email protected] build-android-assets /hdd/documents/src/mmmmm-mobile | |
> npm run lib && npm run propagate-replacements && npm run build-nodejs-app && npm run build-worker-android | |
> [email protected] lib /hdd/documents/src/mmmmm-mobile |
This file contains hidden or 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 "mumlib.hpp" | |
#include "portaudio.h" | |
#include <thread> | |
#define SAMPLE_RATE (8000) | |
#define print printf | |
mumlib::Mumlib *mumble; | |
int staticCallback(const void *inputBuffer, void *outputBuffer, | |
unsigned long framesPerBuffer, |
This file contains hidden or 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
#!python | |
import os | |
target = ARGUMENTS.get("target", "debug") | |
platform = ARGUMENTS.get("platform", "windows") | |
bits = ARGUMENTS.get("bits", 64) | |
final_lib_path = 'bin/' | |
# This makes sure to keep the session environment variables on windows, |
This file contains hidden or 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
FORMAT: | |
TYPE | |
HOST | |
VALUE | |
A Record | |
* | |
216.239.32.21 | |
A Record |
NewerOlder