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 bash | |
# Before this script, target device must mounted as /mnt | |
nix-env -iA nixos.nixUnstable nixos.gh nixos.git | |
gh auth login | |
mkdir -pv /mnt/etc |
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 flake |
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
{ | |
pkgs ? import <nixpkgs> {}, | |
wineprefix ? "", | |
winearch ? "win32", | |
fonts ? "corefonts cjkfonts", | |
}: | |
let | |
exe = pkgs.fetchurl { | |
url = https://app-pc.kakaocdn.net/talk/win32/KakaoTalk_Setup.exe; |
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 | |
set -ex | |
if [ -z "$1" ]; then | |
exit 1 | |
fi | |
STAT=$(mktemp) | |
INFO=$(ffprobe -v error -select_streams v:0 -show_entries stream=width,height,r_frame_rate -of csv=s=x:p=0 "$1") |
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 |
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
# 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
#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
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
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, |
NewerOlder