Skip to content

Instantly share code, notes, and snippets.

@cail
cail / s1.js
Last active March 29, 2019 10:15
tampermonkey gitlab collapse highlighter
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match http://gitlab.rdc.aquantia.com/*
// @grant none
// ==/UserScript==
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3)
// Source File Name: SourceFile
package tw.com.prolific.driver.pl2303;
import android.app.PendingIntent;
import android.content.*;
import android.content.pm.PackageManager;
@cail
cail / SunTime.cs
Created February 7, 2014 19:19
SunTime
using System;
using System.Globalization;
using System.Collections.Generic;
using System.Text;
namespace SunNET
{
/// <summary>
/// Calculates sunset / sunrise time.
///
module AccessibleBlock
module ClassMethods
@accessible_block = false
def key(*arguments, &block)
super
attr_accessible arguments[0] if @accessible_block
end
def attr_accessible(*attrs)
if block_given?