This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Generated on 2014-03-31 using generator-webapp 0.4.7 | |
'use strict'; | |
// # Globbing | |
// for performance reasons we're only matching one level down: | |
// 'test/spec/{,*/}*.js' | |
// use this if you want to recursively match all subfolders: | |
// 'test/spec/**/*.js' | |
module.exports = function (grunt) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
id: 1, | |
img: "650b1406baf39292198e3ba5e1e71b06.jpg", | |
time: "1398766500", | |
title: "在线教育", | |
type: "microdata", | |
detail: { | |
id: "1", | |
title: "安居客梁伟平:是谁逼急了房产商", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create the image | |
$im = imagecreatetruecolor(40, 40); | |
// Create some colors | |
$white = imagecolorallocate($im, 255, 255, 255); | |
// Set background | |
$rand_color= imagecolorallocate($im, rand(0,220), rand(0,220), rand(0,220)); | |
imagefill($im, 0, 0,$rand_color); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ToDoListTableViewController.m | |
// GettingStarted | |
// | |
// Created by seeker single on 6/16/15. | |
// Copyright (c) 2015 GettingStarted.com. All rights reserved. | |
// | |
#import "ToDoListTableViewController.h" | |
#import "ToDoItem.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
Install_Nginx() | |
{ | |
Echo_Blue "[+] Installing ${Nginx_Ver}... " | |
groupadd www | |
useradd -s /sbin/nologin -g www www | |
Tar_Cd ${Nginx_Ver}.tar.gz ${Nginx_Ver} | |
./configure --user=www --group=www --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_spdy_module --with-http_gzip_static_module --with-ipv6 --with-http_sub_module ${NginxMAOpt} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Xcode | |
# | |
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore | |
## Build generated | |
build/ | |
DerivedData | |
## Various settings | |
*.pbxuser |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ======================== Company.php ========== | |
class Company extends Model | |
{ | |
protected $table = 'tbl_company'; | |
protected $primaryKey = 'com_id'; | |
public function company_invest_events() | |
{ | |
return $this->hasMany('App\Models\Company_invest_events','invse_com_id','com_id')->with('invse_orags_list'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
log_format www.{{yoursiteurl}}.com '$remote_addr - $remote_user [$time_local] $request ' | |
'$status $body_bytes_sent $http_referer ' | |
'$http_user_agent $http_x_forwarded_for'; | |
server | |
{ | |
listen 80; | |
server_name www.{{yoursiteurl}}.com {{yoursiteurl}}.com; | |
index index.html index.htm index.php default.html default.htm default.php; | |
root /home/wwwroot/www.{{yoursiteurl}}.com; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SET FOREIGN_KEY_CHECKS=0; | |
-- ---------------------------- | |
-- Table structure for `tbl_city` | |
-- ---------------------------- | |
DROP TABLE IF EXISTS `tbl_city`; | |
CREATE TABLE `tbl_city` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`city_id` int(11) DEFAULT NULL, | |
`city_name` varchar(100) DEFAULT NULL, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Backup name | |
if [ -n "$1" ]; then | |
BACKUP_NAME=$1 # Name of backup (log file, dest dir, exclude) | |
else | |
exit 1 | |
fi | |
# Optional hostname |
OlderNewer