Skip to content

Instantly share code, notes, and snippets.

View naturallucky's full-sized avatar

naturallucky naturallucky

View GitHub Profile
<style type="text/css"><!--
.lap{
visibility: collapse;
}
--></style>
animation: 5s linear 2s infinite normal forward myanime-type;
animation: 9s ease-out 0s 1 normal forward myanime-type;
animation: 5s ease-in-out 2s infinite alternate both myanime-type;
/* aliternate: animation direction , both: animation fill type*/
@keyframes myanime-type { 0% { left: 20pt; } 100% { left: 100pt; } }
@keyframes myanime-type {
0% { left: 20pt; }
50% { left: 20pt; }
@naturallucky
naturallucky / WordPress Popular Posts view customize
Last active April 8, 2019 07:03
WordPress Popular Posts all view custom
#http://edutainment-fun.com/hidemaru/microsoft/%E3%83%87%E3%82%A3%E3%83%AC%E3%82%AF%E3%83%88%E3%83%AA%E3%81%94%E3%81%A8%E3%81%AE%E8%A1%8C%E6%95%B0%E3%82%92%E3%82%AB%E3%82%A6%E3%83%B3%E3%83%88%E3%81%99%E3%82%8B%E3%80%90powershell%E3%80%91_3563.html
Function Get-TotalFileNumOfEachDir() {
if ($args.Length -ne 2) {
$Host.UI.WriteErrorLine("Usage: Get-TotalFileNumOfEachDir <path> <filter:*.cs>")
return
}
$pathto = $args[0]
$filters = $args[1].Split(",")
if (!(Test-Path -PathType Container $pathto)) {
function blinkMessageToNotify(message){
var msg = docId("message");
var delStrLen =msg.textContent.length;
msg.textContent = msg.textContent + message;
delStrLen = msg.textContent.length - delStrLen;//be care for emoji...
setTimeout(function(){
msg.textContent = msg.textContent.substr(delStrLen);
},12600);
}
function docId(idname){
//60,67
//45 81
//32,95
private String convertCharPack(int value, int charnum , int base , int packsize){
int b;
char[] ret = new char[charnum];
for (int i = 0; i < charnum; i++) {
b = value % packsize;
ret[i] = (char)(b+base);
value = value / packsize;
@naturallucky
naturallucky / dinamic-menu-divalign.css
Created May 11, 2016 02:24
dinamic menu divalign css (essence)
.tabs .content {
display:none;
opacity :0.15;
background: #ffcccc;
transition: opacity 1s;
}
.tabs [id^="page"]:checked + label {
background: #ffeeee;
}
@naturallucky
naturallucky / dinamic-menu-radio.css
Created May 11, 2016 02:20
dinamic menu (radio ver) css (essence)
tabs. * {
margin: 0;
padding: 0;
}
.tabs li{
float:left;
list-style: none;
}
.tabs{
position:relative;
@naturallucky
naturallucky / opacity-overlap-label.css
Created May 11, 2016 02:15
opacity overlap label css(essence)
.base{
position:relative;
}
.base .overlapcaption{
position: absolute;
background-color: rgba( 222, 200, 200, 0.8 );
/*キャプションの形と位置*/
top: calc(100% - 12px);
top: -webkit-calc(100% - 12px);
@naturallucky
naturallucky / simple-card-layout.css
Last active May 11, 2016 02:13
simple card layout css (essence)
.card{
word-wrap:break-word;
float:left;
overflow: hidden;
width:120px;
height:200px;
margin:10px;
padding:10px;
background-color:#f5f5f5;