Skip to content

Instantly share code, notes, and snippets.

View Phalacrocorax's full-sized avatar

Phalacrocorax

  • Tokyo
View GitHub Profile
@Phalacrocorax
Phalacrocorax / main.go
Last active December 18, 2020 13:50
Go Template
package main
import (
"{project}/models"
"{project}/routers"
)
func main() {
router := routers.InitRouter()
@Phalacrocorax
Phalacrocorax / .bashrc_common
Last active December 4, 2020 01:42
[template] bashrc, zshrc
#!/bin/sh
# bashrc_common
# [refer]
# https://gist.github.com/Phalacrocorax/9c608ac49cf295e0dfdd91f0aa90aa02
# [Usage]
# if [ -f ~/.bashrc_common ]; then
# . ~/.bashrc_common
# fi
# [deploy]
# alias decmn="cp ~/GoogleDrive/__docs/_env/.bashrc_common ~/.bashrc_common"
@Phalacrocorax
Phalacrocorax / ._Template-File.md
Last active November 15, 2020 01:50
[snippets] Template Config File

List

- yos.bat
- yos.sh
- dockerfile
- apache conf
- nginx conf
- package.json
- jmeter bat
@Phalacrocorax
Phalacrocorax / [SOLUTIONS].md
Last active April 1, 2019 04:35
[SOLUTIONS]
@Phalacrocorax
Phalacrocorax / library.md
Last active August 10, 2020 06:17
[Library] js / css / ui / picture

____awesome-for-beginners awesome-for-beginners @ github

awesomes.cn

由全国的开发者共同维护,打造开放自由免费的高质量前端资源库

SASS

  • milligram // 9kb 感谢milligram,让我学会了SASS
  • iotaCSS // SASS based, follows the BEM Methodology and is inspired by OOCSS
@Phalacrocorax
Phalacrocorax / JS_tools.md
Last active August 14, 2020 17:03
[snippets] javascripts/js
@Phalacrocorax
Phalacrocorax / php+mysql+apahce.php
Last active August 14, 2020 17:09
[snippets] php+mysql+apahce
public function csvToArray($filename = '', $delimiter = ',') {
if (!file_exists($filename) || !is_readable($filename))
return FALSE;
$header = NULL;
$data = array();
if (($handle = fopen($filename, 'r')) !== FALSE) {
while (($row = fgetcsv($handle, 1000, $delimiter)) !== FALSE) {
if (!$header)
$header = $row;
@Phalacrocorax
Phalacrocorax / JOB-FRONTEND.md
Last active August 24, 2020 02:31
[work] JOB | INTERVIEWE | FRONTEND
@Phalacrocorax
Phalacrocorax / snippets-layout.md
Last active September 15, 2020 15:52
[snippets] css

HTML

<!DOCTYPE html>
<html lang="zh">
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=divice-width">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
	<title>website</title>
	<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.13/semantic.min.css"><!--semantic css-->