Skip to content

Instantly share code, notes, and snippets.

View makenowjust's full-sized avatar
㊗️
The IDOLM@STER MILLION LIVE THE ANIMATION

Hiroya Fujinami makenowjust

㊗️
The IDOLM@STER MILLION LIVE THE ANIMATION
View GitHub Profile
@makenowjust
makenowjust / cal.py
Created October 23, 2014 15:07
プロ生ちゃん #カレンダープログラミング プチコンテスト 2014。Ruby & PythonのPolyglotなコードです(2つファイルがありますがどちらも同じ内容です)
"""#{require'date';D=Date;t=D.today;s='';
(x=D.new(t.year,t.month,1).cwday%7).times{s<<' '};
D.new(t.year,t.month,-1).day.times{|i|i+=1;s<<(i<10?' ':'')<<i.to_s<<
((x+i)%7==0??\n:' ')}; puts s;exit}""";__END__=0;1//2
from calendar import *; from datetime import *
setfirstweekday(6);t=datetime.today()
print("\n".join(month(t.year,t.month).split("\n")[2:])[: -1])
#/.hash
function q(s){p=
/\/\*([^]+)(@@ |\*\/)/;//@@@
return(s+'@#@#'). match(p)[1].replace(/ |\s+/g,[''][+0]).
replace(/\x24/g,'\x20');}eval(s=q(function(){/*s="function$q(s){p=/
\\/\\*([^]+)(@@|\\*\\/)/;//@@@return(s+'@#@#').match(p)[1].replace(
/|\\s+/g,[''][+0]).replace(/\\x24/g,'\\x20');}eval(s=q(function(){/
\*"+s.replace(/$/g,'\x24')+"*\/}))";s="x8z0e8|wez04d|wh7l5h|wz0w|wz
0w|wz0w|wz0w|wz0v|wz0x|uz0z02|sz0z06|rz0z08|qz0z0a|qiz09i|qfz0ff|q
ez0id|qbb4t59b|qb98q79a|r9a8p989|s8a8p989|5w98q79q|05o8b4t59cfb|9k18
r3q93h|36n7r1r8l7|21u8m151m8|z9k5l8|z03az03a|z07ifh|o222iz02|q7lp|u312gu
function q(s){p=
/\/\*([^]+)(@@ |\*\/)/;//@@@
return(s+'@#@#'). match(p)[1].replace(/ |\s+/g,[''][+0]).
replace(/\x24/g,'\x20');}eval(s=q(function(){/*s="function$q(s){p=/
\\/\\*([^]+)(@@|\\*\\/)/;//@@@return(s+'@#@#').match(p)[1].replace(
/|\\s+/g,[''][+0]).replace(/\\x24/g,'\\x20');}eval(s=q(function(){/
\*"+s.replace(/$/g,'\x24')+"*\/}))";s="x8z0e8|wez04d|wh7l5h|wz0w|wz
0w|wz0w|wz0w|wz0v|wz0x|uz0z02|sz0z06|rz0z08|qz0z0a|qiz09i|qfz0ff|q
ez0id|qbb4t59b|qb98q79a|r9a8p989|s8a8p989|5w98q79q|05o8b4t59cfb|9k18
r3q93h|36n7r1r8l7|21u8m151m8|z9k5l8|z03az03a|z07ifh|o222iz02|q7lp|u312gu
@makenowjust
makenowjust / Makefile
Created February 24, 2015 09:58
a Makefile of asrun (AngelScript) for Linux (gnuc), it's a public domain.
CXX = g++
CXXFLAGS = -std=c++11 -ggdb -I../../../../angelscript/include -D_LINUX_
SRCDIR = ../../source
OBJDIR = obj
SRCNAMES = \
main.cpp
OBJ = $(addprefix $(OBJDIR)/, $(notdir $(SRCNAMES:.cpp=.o))) \
obj/scriptstdstring.o obj/scriptstdstring_utils.o \
;; parser.clj: parser combinators for Clojure
;;
;; license: http://makenowjust.github.io/license/wtfpl?2015
;; (C) 2015 TSUYUSATO Kitsune
;; parser's type:
;; String ->
;; ((String, result) -> next) -> -- success continuation
;; (error -> next) -> -- failure continuation
;; next
-- == ライブラリの読み込み ==
local gears = require("gears")
local awful = require("awful")
awful.rules = require("awful.rules")
require("awful.autofocus")
local wibox = require("wibox")
local beautiful = require("beautiful")
local naughty = require("naughty")
local menubar = require("menubar")
require("debian.menu")
@makenowjust
makenowjust / uim-qt5.sh
Created March 18, 2015 08:02
uimのQt5対応のためにGitHubからビルドした奴
#!/bin/bash
set -ve
sudo apt install -y qt5-default qtbase5-private-dev
git clone https://github.com/uim/uim.git
cd uim
./make-wc.sh --with-qt5 --with-qt5-immodule --libexecdir=/usr/lib/x86_64-linux-gnu/uim/
make
# 必要?
# sudo cp qt5/immodule/plugins/platforminputcontexts/libuimplatforminputcontextplugin.so /usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/
@makenowjust
makenowjust / kite-1.0.4.20150327.diff
Last active August 29, 2015 14:17
kite-1.0.4.tar.gzのコンパイルに使うパッチ
diff -Naru kite-1.0.4.orig/backend/common/kite_vm.c kite-1.0.4/backend/common/kite_vm.c
--- kite-1.0.4.orig/backend/common/kite_vm.c 2015-03-27 04:04:34.393858194 +0000
+++ kite-1.0.4/backend/common/kite_vm.c 2015-03-27 04:08:33.341847540 +0000
@@ -152,7 +152,8 @@
#endif
#ifdef HAVE_GC_H
- ret->old_proc = GC_set_warn_proc((GC_warn_proc)kite_ignore_gc_warnings);
+ ret->old_proc = GC_get_warn_proc();
+ GC_set_warn_proc((GC_warn_proc)kite_ignore_gc_warnings);
@makenowjust
makenowjust / grass.go
Created April 3, 2015 07:17
Grass interpreter
package main
import (
"errors"
"fmt"
"io"
"io/ioutil"
"os"
)
@makenowjust
makenowjust / moon.js
Created April 19, 2015 14:08
Moon is Macro based Programming Language.
'use strict';
// class Context
function Context(parent) {
this.parent = parent;
this.local = new Map();
this.whiteSpace = (parent || this).whiteSpace;
this.specialChar = clone((parent || this).specialChar);
this.isYield = false;