This file contains hidden or 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
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" Sections: | |
" -> General | |
" -> VIM user interface | |
" -> Colors and Fonts | |
" -> Files and backups | |
" -> Text, tab and indent related | |
" -> Visual mode related | |
" -> Moving around, tabs and buffers | |
" -> Status line |
This file contains hidden or 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/python | |
from __future__ import division | |
import sys | |
import random | |
""" | |
The script is rewritten JavaScript as Python. | |
==================================================== | |
<script type="text/javascript"> | |
<!-- |
This file contains hidden or 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/python | |
""" | |
The script is rewritten C as Python. | |
==================================================== | |
""" | |
for i in range(NPATH+1): | |
cash_flow[i]=payoff(stock[i][tmax], pexe) |
This file contains hidden or 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
$(document).ready(function(){ | |
$('#selected-plays > li li').addClass('special'); | |
$('tr').each(function(){ | |
$(this).children('td:eq(2)').addClass('year'); | |
}); | |
$('tr:contains(Tragedy)').first().addClass('special'); | |
$('a').parent().siblings().andSelf().addClass('afterlink'); |
This file contains hidden or 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
$(document).ready(function(){ | |
$('div.chapter a[href*="wikipedia"]').attr({ | |
rel: 'external', | |
title: function() { | |
return 'Learn about ' + $(this).text() + ' at Wikipedia.'; | |
}, | |
id: function(index, oldValue) { | |
return 'wikilink-' + index; | |
} | |
}); |
This file contains hidden or 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
//$.fn.cycle.defaults.random = true; | |
$(document).ready(function(){ | |
$('#books').cycle({ | |
timeout: 1000, | |
delay: -1000, // (1) | |
speed: 1500, | |
pause: true, | |
before: function(){ |
This file contains hidden or 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
(function($) { | |
$.extend($.expr[':'], { | |
group: function(element, index, matches, set) { | |
var num = parseInt(matches[3], 10); | |
if (isNaN(num)){ | |
return false; | |
} | |
return index % num < num; | |
}, | |
This file contains hidden or 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
const int datalen=32; | |
const int dbN=3; | |
const int stages=4; | |
/* interface array, put your signal data here and | |
pure signal is returned here after filtering*/ | |
double dataio[datalen]; | |
double data[datalen];// main data arrays | |
double har[stages][datalen]; | |
double gar[stages][datalen]; |
This file contains hidden or 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
#include <iostream> | |
using namespace std; | |
bool updateProcess(int pct) | |
{ | |
cout << pct << "% complete...\n"; | |
return (true); | |
} |
This file contains hidden or 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> | |
<link href="//aveline.oss.aliyuncs.com/themes/its-compiling/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css"> | |
<link href="//fonts.googleapis.com/css?family=PT+Serif:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css"> | |
</head> | |
<body> | |
<div class="wrapper"> |