Skip to content

Instantly share code, notes, and snippets.

Avatar

刘兵 iflamed

View GitHub Profile
@martincarlin87
martincarlin87 / deploy.php
Last active Oct 14, 2019
Deployer Laravel 5
View deploy.php
<?php
namespace Deployer;
require 'recipe/laravel.php';
$repo_url = '';
$branch = 'master';
$server_url = '';
$user = '';
@gokulkrishh
gokulkrishh / media-query.css
Last active Nov 29, 2021
CSS Media Queries for Desktop, Tablet, Mobile.
View media-query.css
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
/* CSS */
@dongyuwei
dongyuwei / dir2tree.js
Created Mar 30, 2012
dir to tree by nodejs 递归遍历目录,生成一个js树对象.
View dir2tree.js
(function() {
var path = require('path'), fs = require('fs');
function walk(uri,filter,tree) {
var node = {
name : null,
children : [],
pNode : null,
};