Skip to content

Instantly share code, notes, and snippets.

View curder's full-sized avatar
🎯
Focusing

curder curder

🎯
Focusing
View GitHub Profile

Web Development with Laravel 5

目標

如何在開發的過程中加入測試。

  1. Model
  2. Repository
  3. Controller
  4. Auth
@curder
curder / video.html
Created September 13, 2017 07:59
VideoJs的简单使用
<!doctype html>
<html lang="zh_CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Video Js</title>
<link href="https://cdn.bootcss.com/video.js/6.2.7/video-js.css" rel="stylesheet">
</head>
<body>
@curder
curder / dynamic-forms.html
Last active September 25, 2017 03:11
使用VueJs2.4.2动态添加表单Demo.
<!DOCTYPE html>
<html lang="zh_CN">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Dynamic Forms</title>
<link href="https://cdn.bootcss.com/bootstrap/4.0.0-beta/css/bootstrap.css" rel="stylesheet">
</head>
<body>
@curder
curder / vue_todo_list.html
Created September 25, 2017 03:11
使用Vue2.4.2开发Todo应用Demo.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Vue js 2.0</title>
<link href="https://cdn.bootcss.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" rel="stylesheet">
<style type="text/css">
.text-decoration{
text-decoration:line-through;
}
@curder
curder / style.scss
Created October 14, 2017 13:29
在SCSS中简单使用循环语句for/while/each
// for loop
@for $space from 1 through 12 {
.pt-#{$space} {
padding-top: 10px * $space;
}
.pb-#{$space} {
padding-bottom: 10px * $space;
}
$width: percentage(1 / $space);
@curder
curder / shop.simple.html
Last active November 4, 2017 03:21
练习HTML/CSS布局简单电商网站首页,注意细节的处理。
<!doctype html>
<html lang="zh_CN">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>HTML/CSS布局练习</title>
<link href="https://cdn.bootcss.com/normalize/7.0.0/normalize.min.css" rel="stylesheet">
<style>
@curder
curder / vue_component_event.html
Last active January 7, 2018 13:28
VueJs组件通讯-子组件给父组件传递事件演示,视频演示参考这里:https://www.bilibili.com/video/av10323610/index_24.html?t=312
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>VueJs组件通讯-自定义事件</title>
<link href="https://cdn.bootcss.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
@curder
curder / vue_siblings_component_event.html
Last active November 5, 2017 09:57
VueJs组件通讯-兄弟组件使用$emit和$on通讯 视频参考:https://www.bilibili.com/video/av10323610/index_24.html?t=312#page=25
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>VueJs组件通讯-兄弟组件使用$emit和$on通讯</title>
<link href="https://cdn.bootcss.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
@curder
curder / chat.html
Last active December 10, 2017 14:18
socketIO初探,简单的实现客户端和服务端事件的推送
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Chat Demo</title>
</head>
<body>
<div id="app">
<ul>
<li v-for="m in messages" v-text="m"></li>
@curder
curder / laravel-project-initialize-readme-template.md
Last active November 2, 2018 14:42
Laravel项目初始化README模版

安装

1. 下载

推荐使用git 获取项目对应master分支上的最新代码,使用下面的命令:

git clone https://github.com/curder/example