Skip to content

Instantly share code, notes, and snippets.

View keefo's full-sized avatar
📺

Xu Lian keefo

📺
View GitHub Profile
@keefo
keefo / Constants.js
Created May 23, 2021 22:55
JS Utils
const EMAIL_REGEX = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/
hello
👌
/********************
* theLongWayOut.js *
********************
*
* Well, it looks like they're on to us. The path isn't as
* clear as I thought it'd be. But no matter - four clever
* characters should be enough to erase all their tricks.
*/
function startLevel(map) {
diff --git a/www/settings.py b/www/settings.py
index 406ab4f..a645f39 100644
--- a/www/settings.py
+++ b/www/settings.py
@@ -132,7 +132,7 @@ LANGUAGES = {
"hu": "Hungarian",
"id": "Bahasa Indonesia",
"it": "Italiano",
- "ja": "日本人",
+ "ja": "日本語",
@keefo
keefo / backup.sh
Created July 8, 2019 01:19 — forked from orrisroot/backup.sh
cron daily backup script
#!/bin/bash
export LANG=C
BACKUPDIR=/data/backup/daily
DATE=`date`
if test ! -d $BACKUPDIR; then
mkdir -p $BACKUPDIR
chmod 700 $BACKUPDIR
@keefo
keefo / bdd-kep.mkd
Created July 8, 2019 01:19 — forked from hh/bdd-kep.mkd
BDD Markdown KEP
#include <queue>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
vector<pair<int, int>> tree[40001];
int d[40001];
int p[40001];
/*************
* colors.js *
*************
*
* You're almost at the exit. You just need to get past this
* color lock.
*
* Changing your environment is no longer enough. You must
* learn to change yourself. I've sent you a little something
* that should help with that.
import java.util.Scanner;
public class Kattis {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while (sc.hasNext()) {
@keefo
keefo / .block
Last active December 16, 2019 00:41 — forked from Jcimat13/.block
MDDN342 Assignment 1: Living Wallpaper
license: mit
height: 480
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Prime Number 출력기</title>
</head>
<body>
<script>