Skip to content

Instantly share code, notes, and snippets.

❤️
Trying to make a living from open source.

EGOIST egoist

❤️
Trying to make a living from open source.
Block or report user

Report or block egoist

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View translate.js
$translateProvider.translations('cn', {
'GLOBAL':{
'save': '保存',
'cancel': '取消',
'confirm': '确定'
},
'NAV':{
'file': {
'title': '文件',
'option': {
View translate.js
$translateProvider.translations('cn', {
'GLOBAL':{
'save': '保存',
'cancel': '取消',
'confirm': '确定'
},
'NAV':{
'file': {
'title': '文件',
'option': {
View translate.js
$translateProvider.translations('cn', {
'GLOBAL':{
'save': '保存',
'cancel': '取消',
'confirm': '确定'
},
'NAV':{
'file': {
'title': '文件',
'option': {
View SublimeText3.json
{
"font_face": "Menlo Plus",
"font_size": 13,
"tab_size": 4,
"translate_tabs_to_spaces": true,
"line_padding_top": 1.1,
"line_padding_bottom": 1.1
}
@egoist
egoist / delAllFilesinFolder.php
Created Nov 21, 2014
删除目录下所有文件
View delAllFilesinFolder.php
<?
$files = glob('path/to/temp/*'); // get all file names
foreach($files as $file){ // iterate files
if(is_file($file))
unlink($file); // delete file
}
@egoist
egoist / Gravatar.php
Created Nov 23, 2014
Gravatar Library using V2EX CDN
View Gravatar.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
// Remove the very first line to use class outside of codeigniter
/*
* Gravatar library for use with codeigniter <V2EX driven>
*
* @author 0x142857 <0x142857@gmail.com>
* @link http://0x142857.com
* @package Codeigniter
* @subpackage Gravatar
*
@egoist
egoist / make_image_pos_center.js
Last active Aug 29, 2015
图片由于缓存所以不会每次使用 .load() 都会有效果 【解决方案】
View make_image_pos_center.js
var el = $('img');
el.one("load", function() {
//do something, for me I wanna make the position vertical center, so I call function center();
}).each(function() {
if(this.complete) $(this).load();
});
/*
function center(){
var marginTop = 0;
View replace.php
if(strpos($text, 'www.xiami.com')){
$text = preg_replace('/http:\/\/www.xiami.com\/song\/([a-zA-Z0-9\=]+)?/', '<iframe src="//inmusic.sinaapp.com/xiamiplayer/\1" frameborder="0" scrolling="0" width="420" height="200" allowtransparency></iframe>', $text);
}
View button.css
.button {
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
border-radius: 2px;
background: #c83737;
border-bottom: 2px solid #a02c2c;
color: white;
display: inline-block;
font: bold 26px/1 "myriad-pro", "Myriad Pro", sans-serif;
letter-spacing: -1px;
View unravel_api.md

按日期获取

Type: GET

URL: https://insekai.com/api/get_unravel_by_date/YOUR_DATE

YOUR_DATE: YYYYMMDD

RESPONSE:

You can’t perform that action at this time.