Skip to content

Instantly share code, notes, and snippets.

View supermomonga's full-sized avatar
🏠
Working from home

supermomonga supermomonga

🏠
Working from home
View GitHub Profile
@kumar8600
kumar8600 / lingr-api-memo.md
Last active October 27, 2015 04:59
Lingr API メモ

ここでは、Lingr Bot APIについての情報を取り扱わず、Lingr APIについてのみ扱う。

参照

@pnlybubbles
pnlybubbles / revive.rb
Last active December 15, 2015 21:37
死体を数回クリックすることで仲間を蘇生できるようにするBukkitプラグイン。Puruginを利用。
# encoding: utf-8
$glowstone_marker = true
$delete_dead_items = true
$indestructible_skull = true
class RevivePlugin
include Purugin::Plugin
description 'Revive', 0.2
let s:P = g:V.import('ProcessManager')
let s:p = s:P.of('qr', 'clojure-1.6')
nnoremap <Space>r :<C-u>call <SID>run()<Cr>
function! s:run()
if s:p.is_new()
call s:p.wait(['user=> '])
endif
@sonots
sonots / gist:eb54b8cd3e4467cd62ba
Created July 15, 2014 06:32
rails application template methods
pry> methods.sort.each {|m| puts m }
!=
!~
<=>
==
===
=~
__id__
__send__
_cleanup_options_and_set
@kenrett
kenrett / Selenium Cheat Sheet.md
Last active February 24, 2026 02:11
Selenium Cheat Sheet - Ruby

#Getting Started

##Webpage:

<html>
<head>
    <title>Testing with Ruby and Selenium WebDriver</title>
</head>
 
<body bgcolor="antiquewhite">
@skrb
skrb / Test.java
Created August 29, 2013 23:41
Hyperlink Demo
import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.geometry.Pos;
import javafx.scene.Scene;
import javafx.scene.control.Hyperlink;
import javafx.scene.control.Label;
import javafx.scene.layout.BorderPane;
import javafx.scene.layout.FlowPane;
import javafx.scene.web.WebEngine;
@you21979
you21979 / esxi install tips
Last active December 12, 2020 20:44
ESXiのTIPS集
* メモリはどれくらい載せたほうがよいか
16gbがおすすめ
8gbだとCPUの性能限界より先にメモリが足りなくなる
DBをいくつか載せたりファイルサーバーもVMとして載せたいなら32gbがよい
* GPUパススルー方法
下記のカードをつける
AMD RADEON HD4xxx系
AMD RADEON HD5xxx系
AMD RADEON HD6xxx系
@keikubo
keikubo / README.md
Created March 20, 2012 01:38
Nginx + Unicorn for Rails on Rackhub

Nginx + Unicorn for Rails on Rackhub

Description:

This script enables you to launch your Rails application in production environment (port:80) with Nginx and Unicorn.

Installation:

Please make sure that your Gemfile in your rails application includes unicorn.

@kubosho
kubosho / emacs.rb
Created March 3, 2012 14:43
Cocoa Emacs 23.3b formula with patches(Lion fullscreen, Emacs fullscreen, IME inline).
require 'formula'
class Emacs < Formula
url 'http://ftp.gnu.org/pub/gnu/emacs/emacs-23.3b.tar.bz2'
md5 '917ce0054ef63773078a6e99b55df1ee'
homepage 'http://www.gnu.org/software/emacs/'
if ARGV.include? "--use-git-head"
head 'git://repo.or.cz/emacs.git'
else
@rhysd
rhysd / LINDA_PP_quine.rb
Created November 10, 2011 23:47
AA-Quine
eval($q= "$q='eva l($q=% p.split *%p)'%[$q,'' ];$o= 0;(m=%q_efg!q !+b<b/tj{f/uj
nft|}j }u>b\\ j^<qsj ou)j& 3>>1@(!(+u;% r\\%p-u ^*<%p,>u!jg)j &3>>2*~<qvut<
foe_ ).si ze.tim es{| i|m[ i]-= 1};eval(m );p( 0,8, 14,8 ,4,6
,4,7 ,4,1 2,15,5, 36,1 3,6, 13); p(1, 6,16 ,6,6 ,6,4 ,5,6 ,12,
13,7 ,36, 13,6 ,13 );p( 2,4, 18,4 ,8,6 ,3,4 ,8,4,4,4,11, 9,36,4,5,4,6
,4,5 ,4); p(2, 4,18,4, 8,7, 2,4, 8,4,5,4,9,4,3,4 ,35,4,5,4,6 ,4,5,4);p(2
,4,1 8,4, 8,4, 1,3,1, 4,8, 4,5, 4,8,4,