Skip to content

Instantly share code, notes, and snippets.

@Echos
Echos / check.sh
Last active August 29, 2015 14:23
rpmの被依存関係表示
#/bin/bash
PKGS=()
chk(){
pre $1
if [ $? == 1 ]; then
#echo "$1はチェック済みです"
return
else
#!/bin/bash
uri=$1
checkuri(){
schema=`echo $1 | sed -e 's,^\(.*://\).*,\1,g'`
url=`echo ${1/$schema/}`
if [[ $url = *@* ]]; then
userpass=`echo $url | sed -e 's,^\(.*\)@.*,\1,g'`
if [[ $userpass = *:* ]];then
<html>
<head>
<script type="text/javascript" src="http://code.jquery.com/jquery-2.1.0.min.js"></script>
<script type="text/javascript">
function toggle(){
$("#m").toggleClass("marquee");
}
@Echos
Echos / 0_reuse_code.js
Last active August 29, 2015 14:08
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@Echos
Echos / README.md
Last active August 29, 2015 13:56
DevHubにGoogleNotificationの対応を入れた感じの何か

DevHubにGoogleChomeNotification対応を入れてみた。

以下の断片をDevHub.min.jsに組み込みました。

そもそもとしては、libs/client.jsのprepend_msgに組み込む感じが正しい。

        var havePermission = window.webkitNotifications.checkPermission();
        if (havePermission == 0) {
 var notification = window.webkitNotifications.createNotification(
$ rbenv global 1.9.3-p484;rbenv rehash ; ruby -v ; haml -v ; haml test.haml test1.9.html ; more test1.9.html ; od test1.9.html
ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-darwin13.0.0]
Haml 3.1.8 (Separated Sally)
Loaded. /usr/local/bin/zsh [2sec]
<html>
<head></head>
<body>
<div class='class1'>
a
b
require 'formula'
class Freetype2 <Formula
url 'http://sourceforge.net/projects/freetype/files/freetype2/2.4.4/freetype-2.4.4.tar.gz/download'
homepage 'http://freetype.sourceforge.net/index2.html'
md5 '9273efacffb683483e58a9e113efae9f'
version '2.4.4'
# depends_on 'cmake'
@Echos
Echos / gist:5726544
Created June 7, 2013 01:45
setting for chrome-keycofig
{
"name": "Chrome Keyconfig",
"version": "1.14.0",
"normal_actions": {
"q q": {
"name": "select left tab",
"args": []
},
"w w": {
"name": "select right tab",
{
"resource": {
},
"setting": {
},
"local": {
"site_name": "Massr -検証用-",
"like": "わかるわ",
"unlike": "わからないわ",
"delete": "けしさるわ",
diff --git a/public/js/default.js b/public/js/default.js
index c2d6785..6dd6248 100644
--- a/public/js/default.js
+++ b/public/js/default.js
@@ -409,9 +409,10 @@ $(function(){
*/
$('#new-res-notice-text').each(function(){
var notice = $(this);
+ var link = $('a',this);
var notice_count = notice.text().match(/\d+/);