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
{ | |
"cmd": ["javac \"$file_name\" && java \"$file_base_name\""], | |
"shell": true, | |
"file_regex": "^(...*?):([0-9]*):?([0-9]*)", | |
"selector": "source.java" | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>LocalStorage fault</title> | |
<link rel="stylesheet" href="http://typo.sofish.de/typo.css" /> | |
</head> | |
<body class="typo" style="width:800px;margin:30px auto;"> | |
<h3># error message</h3> |
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
/* | |
npm install gulp gulp-load-plugins gulp-uglify | |
npm install browserify babelify glob vinyl-source-stream vinyl-buffer | |
More examples: https://github.com/gulpjs/gulp/tree/master/docs/recipes | |
*/ | |
var gulp = require('gulp') | |
var $ = require('gulp-load-plugins')() | |
var browserify = require('browserify') |
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
<?php | |
//sample ajax function | |
add_action('wp_ajax_sample_ajax_function', 'sample_ajax_function'); //添加当用户处于登录状态下添加响应的 Hook | |
add_action('wp_ajax_nopriv_sample_ajax_function', 'sample_ajax_function'); //添加当用户处于未登录状态下添加响应的 Hook | |
//响应 AJAX 请求的主程序来了 | |
function sample_ajax_function(){ | |
$data = $_POST['data']; //接受并保存 request,这里的 data 可以是其他的东西,取决于你发过来的参数名,这个后面会说 | |
//简单预设将要返回的数据,假定接收到了 data 这个参数就返回 {'status':'success'},否则返回 {'status':'fail'} | |
$arr = array('status'=>'success'); | |
if(!$data) $arr['status'] = 'fail'; |
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
#UPDATE:2013-07-07 21:01 | |
127.0.0.1 localhost | |
#SmartHosts START | |
#Google Services START | |
203.208.46.200 0.docs.google.com | |
203.208.46.200 0.drive.google.com | |
203.208.46.200 1.docs.google.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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
1、nodejs编写HelloWord,了解什么是nodejs,nodejs有什么特点
2、nodejs的模块怎么用,如何载入别的模块(require),如何给另一模块调用(module, module.exports),自己编写的模块与
node_modules下模块有什么区别,载入顺序是怎样的;自己写一个编写nodejs的一个模块;
3、npm是什么,npm工具如何使用
npm install
npm init
npm install xxx
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
<script> | |
import Vue from 'vue'; | |
import Ajax from '../utils/ajax'; | |
import Modal from './modal.vue'; | |
let httpRes = {}; | |
export default { | |
props: { |
OlderNewer