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
#!/bin/bash | |
apt update && apt install -y wget bsdtar zsh | |
mkdir -p ~/zsh | |
curl -L git.io/antigen > ~/zsh/antigen.zsh | |
chsh -s zsh |
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
fn main() { | |
#[derive(PartialEq, Debug)] | |
struct X(u8); | |
let xs: Vec<X> = vec![X(0), X(1), X(2)]; | |
if let [start @ .., end] = &*xs { | |
// --- bind on last element, assuming there is one. | |
// ---------- bind the initial elements, if there are any. | |
assert_eq!(start, &[X(0), X(1)] as &[X]); | |
assert_eq!(end, &X(2)); |
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
use std::io::{self, BufRead}; | |
use std::iter; | |
use itertools::Itertools; | |
fn get_line() -> String { | |
let mut buf = String::with_capacity(64); | |
io::stdin().lock().read_line(&mut buf).unwrap(); | |
buf | |
} |
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
#!/bin/bash | |
apt update && apt install -y p7zip wget | |
wget -O eraym-rs-android.7z https://github.com/Riey/eraym-rs/releases/latest/download/eraym-rs-android.7z | |
7z x eraym-rs-android.7z -aoa | |
chmod +x ./eraym-rs |
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
use std::slice::SliceIndex; | |
use std::ptr::NonNull; | |
use std::ops::{Deref, DerefMut, Index, IndexMut}; | |
use std::iter::FromIterator; | |
// 필드는 참고용이며 꼭 이렇게 안해도됨 | |
pub struct Vec<T> { | |
ptr: NonNull<T>, | |
len: usize, | |
cap: usize, |
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
use time::{Date, Weekday}; | |
fn main() { | |
let n = std::env::args().nth(1).unwrap().parse().unwrap(); | |
let current_year = 2020; | |
let mut native = 0; | |
let mut bridge = 0; | |
for i in 0..n { |
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 <cstdint> | |
#include <optional> | |
#include <string> | |
#include <vector> | |
#include <iostream> | |
using utf8 = std::u8string_view; | |
using utf8_iter = std::u8string_view::const_iterator&; | |
#define CONT_MASK 0b00111111 |
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
# Maintainer: riey <creeper844@gmail.com> | |
pkgname=kime-bin | |
pkgver=0.4.1 | |
pkgrel=1 | |
pkgdesc="Korean IME" | |
url="https://github.com/Riey/kime" | |
conflicts=('kime') | |
provides=('kime') | |
depends=('gtk3' 'cairo' 'libxcb') |
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
# Maintainer: riey <creeper844@gmail.com> | |
pkgname=kime-git | |
pkgver=0.4.1.184.gc9740f9 | |
pkgrel=1 | |
pkgdesc="Korean IME" | |
url="https://github.com/Riey/kime" | |
conflicts=('kime') | |
provides=('kime') | |
depends=('gtk3' 'cairo' 'libxkbcommon' 'libxcb' 'pango') |
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
// Java Program to create a text editor using java | |
import java.awt.*; | |
import javax.swing.*; | |
import java.io.*; | |
import java.awt.event.*; | |
import javax.swing.plaf.metal.*; | |
import javax.swing.text.*; | |
class editor extends JFrame implements ActionListener { | |
// Text component |
OlderNewer