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 <stdio.h> | |
#define CHAR_W 3 | |
#define CHAR_H 5 | |
int CHAR_TBL[CHAR_H][CHAR_W] = { | |
{ 0, 1, 0 }, | |
{ 1, 0, 1 }, | |
{ 1, 1, 1 }, | |
{ 1, 0, 1 }, |
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
library('tidyverse') | |
library('lubridate') | |
read_weechatlog <- function(file_name, parse_dates=TRUE, messages_only=TRUE, | |
sanitize_names=TRUE) { | |
pattern <- "(\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2})\t(.+)\t(.+)" | |
lines <- readLines(file_name) %>% | |
str_match_all(pattern) | |
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
PassengerId | Pclass | Name | Sex | Age | SibSp | Parch | Ticket | Fare | Cabin | Embarked | |
---|---|---|---|---|---|---|---|---|---|---|---|
892 | 3 | Kelly, Mr. James | male | 34.5 | 0 | 0 | 330911 | 7.8292 | Q | ||
893 | 3 | Wilkes, Mrs. James (Ellen Needs) | female | 47 | 1 | 0 | 363272 | 7 | S | ||
894 | 2 | Myles, Mr. Thomas Francis | male | 62 | 0 | 0 | 240276 | 9.6875 | Q | ||
895 | 3 | Wirz, Mr. Albert | male | 27 | 0 | 0 | 315154 | 8.6625 | S | ||
896 | 3 | Hirvonen, Mrs. Alexander (Helga E Lindqvist) | female | 22 | 1 | 1 | 3101298 | 12.2875 | S | ||
897 | 3 | Svensson, Mr. Johan Cervin | male | 14 | 0 | 0 | 7538 | 9.225 | S | ||
898 | 3 | Connolly, Miss. Kate | female | 30 | 0 | 0 | 330972 | 7.6292 | Q | ||
899 | 2 | Caldwell, Mr. Albert Francis | male | 26 | 1 | 1 | 248738 | 29 | S | ||
900 | 3 | Abrahim, Mrs. Joseph (Sophie Halaut Easu) | female | 18 | 0 | 0 | 2657 | 7.2292 | C |
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 <stdint.h> | |
#include <stdlib.h> | |
#include <game.h> | |
#include <globals.h> | |
#include <jag_arc.h> | |
#include <log.h> | |
#include <surface.h> | |
void game_load_resources(struct game *game) { |
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
#ifndef SYSD_BUFFER_HPP | |
#define SYSD_BUFFER_HPP | |
#pragma once | |
#include <cstdint> | |
#include <type_traits> | |
#include <vector> | |
namespace sysd { |
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
public class SheMale extends Script { | |
private final Extension ex; | |
public SheMale(Extension ex) { | |
super(ex); | |
this.ex = ex; | |
} | |
@Override |
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
private void dump_sprite_image(int sprite_id, String name, int count) { | |
try { | |
for (int i = 0; i < count; i++) { | |
int id = sprite_id + i; | |
Path path = Paths.get("sprite_dump", name + "-" + i + ".png"); | |
if (!Files.exists(path.getParent())) { | |
Files.createDirectories(path.getParent()); | |
} | |
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
import java.awt.BorderLayout; | |
import java.awt.Button; | |
import java.awt.Choice; | |
import java.awt.Frame; | |
import java.awt.GridLayout; | |
import java.awt.Label; | |
import java.awt.Panel; | |
import java.awt.TextField; | |
import java.awt.event.ActionEvent; | |
import java.awt.event.ActionListener; |
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
#ifndef SYSD_REGISTER_HPP | |
#define SYSD_REGISTER_HPP | |
#pragma once | |
#include <cstdint> | |
#include <type_traits> | |
#include "sysd/utility.hpp" |
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 <cstdint> | |
#include <utility> | |
namespace sysd { | |
constexpr bool is_big_endian() { | |
return __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__; | |
} | |
template<class T, std::size_t... N> | |
constexpr T byte_swap_impl(T t, std::index_sequence<N...>) { |