code stringlengths 4 1.01M | language stringclasses 2 values |
|---|---|
jsonp({"cep":"71020122","logradouro":"Quadra QI 3 Conjunto L","bairro":"Guar\u00e1 I","cidade":"Bras\u00edlia","uf":"DF","estado":"Distrito Federal"});
| Java |
jsonp({"cep":"03151030","logradouro":"Rua Igarat\u00e1","bairro":"Quinta da Paineira","cidade":"S\u00e3o Paulo","uf":"SP","estado":"S\u00e3o Paulo"});
| Java |
jsonp({"cep":"63880000","cidade":"Domingos da Costa","uf":"CE","estado":"Cear\u00e1"});
| Java |
Kernel Dev Notes
================
Misc
----
cat /proc/kmsg
make mandocs; make installmandocs
make coccicheck M=drivers/staging
* Trivial Patch Monkey
trivial@kernel.org
Quotes
------
* Fire up your editor and come join us; you will be more than welcome.
* "Printf should not be used for chit-chat"
* If I could give you one piece of advice: never sleep with anyone crazier than
yourself. But if I had to give you advice on locking: keep it simple.
* Deadlocks are problematic, but not as bad as data corruption. Code which grabs
a read lock, searches a list, fails to find what it wants, drops the read
lock, grabs a write lock and inserts the object has a race condition.
If you don't see why, please stay the fuck away from my code.
* This conversation is unreal. Just remove the misguided assert and
you're good. After that, please have someone explain basic reference
counting to you.
Thanks,
Andreas
*
Source code
-----------
# Greg KH's tree
`$ git clone -b staging-testing \
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git`
# Torvalds' tree
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Documentation
-------------
See src/HOWTO for list of prerequisite reading.
int types
---------
Never use int8_t and friends. Use u8, u16, s32 etc
'int' is a return type, and for loops and other things that you know
will fit in that size.
For values that cross the user/kernel boundry, add '__' to the front of
the variable
__u8
__u16
__u32
and so on. NEVER use 'int' or 'long' crossing that boundry, it's not
going to work properly.
Patches
-------
* Who to send patch to
$ scripts/get_maintainer.pl mm/memory.c
* Patch from last commit (add extra ~ for more commits)
$ git format-patch HEAD~
_remember to check commit format, use `lfile <file>`_
* Patch set
$ git format-patch -s -X -o /home/tobin/scratch/outgoing --cover-letter <!-- set X -->
Development Tools
-----------------
_see Documentation/4.Coding_
run code with lockdep
Documentation/fault-injection/fault-injection.txt
sparse - add C=1 to the make command
_see https://sparse.wiki.kernel.org/index.php/Main_Page_
Documentation/coccinelle.txt
Comments
--------
Certain things should always be commented. Uses of memory barriers should
be accompanied by a line explaining why the barrier is necessary. The
locking rules for data structures generally need to be explained somewhere.
Major data structures need comprehensive documentation in general.
Non-obvious dependencies between separate bits of code should be pointed
out. Anything which might tempt a code janitor to make an incorrect
"cleanup" needs a comment saying why it is done the way it is. And so on.
TODO
----
learn how to cross compile http://www.kernel.org/pub/tools/crosstool/
read Documentation/kernel-doc-nano-HOWTO.txt
* git
http://git-scm.com/
http://www.kernel.org/pub/software/scm/git/docs/user-manual.html
read git book again
review some patches
phrase review: comments as questions rather than criticisms. Asking "how does
the lock get released in this path?" will always work better than stating "the
locking here is wrong."
* start looking for bugs
build kernel using torvalds-4.6-rc7.config, it has debug options turned on.
Reading List
------------
Linux Kernel Build
==================
* which tree
`$ cd $KERNEL_TREE`
* clean
`$ make mrproper`
* get runnin config file
`$ cp /boot/config-blah .config`
* update config
`$ make nconfig`
* build
`$ make -j8 EXTRA-CFLAGS=-W` <!-- get extra compiler warnings -->
* make modules and run Ubuntu install script
`# make modules_install install`
* build emacs TAGS file
`# make TAGS`
Qemu
====
https://www.collabora.com/news-and-blog/blog/2017/01/16/setting-up-qemu-kvm-for-kernel-development/
mount image using chroot to make changes (file system is read only
when booted with qemu)
https://help.ubuntu.com/community/Installation/FromLinux
root password: pass
| Java |
jsonp({"cep":"06170102","logradouro":"Rua Edvaldo da Anuncia\u00e7\u00e3o Nascimento","bairro":"Jardim Roberto","cidade":"Osasco","uf":"SP","estado":"S\u00e3o Paulo"});
| Java |
jsonp({"cep":"52091089","logradouro":"1\u00aa Travessa Popular","bairro":"C\u00f3rrego do Jenipapo","cidade":"Recife","uf":"PE","estado":"Pernambuco"});
| Java |
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>web server - Coding is Poetry</title>
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="description" content="">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="web server - Coding is Poetry">
<meta name="twitter:description" content="">
<meta property="og:url" content="http://nmrony.info">
<meta property="og:type" content="article">
<meta property="og:title" content="web server - Coding is Poetry">
<meta property="og:description" content="">
<meta property="og:site_name" content="Coding is Poetry">
<meta itemprop="name" content="web server - Coding is Poetry">
<meta itemprop="description" content="">
<meta name="twitter:site" content="@nmrony">
<meta name="twitter:creator" content="@nmrony">
<meta property="article:author" content="https://www.facebook.com/nmrony">
<meta name="google-site-verification" content="">
<meta name="theme-color" content="">
<link href="../../favicon.ico" rel="shortcut icon" type="image/x-icon">
<link href="../../apple-touch-icon-precomposed.png" rel="apple-touch-icon">
<link href="http://fonts.googleapis.com/" rel="dns-prefetch">
<link href="http://fonts.googleapis.com/css?family=Noto+Serif:400,700,400italic%7COpen+Sans:700,400&subset=latin,latin-ext" rel="stylesheet">
<link rel="stylesheet" href="../../assets/css/main.min.css?v=a04fd632d9">
<script type="text/javascript" src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
<script type="text/javascript">
var ga_ua = 'UA-73097824-1';
var disqus_shortname = 'nmrony';
var enable_pjax = true;
// Pace Options
// ==============
window.paceOptions = {
catchupTime: 100,
minTime: 100,
elements: false,
restartOnRequestAfter: 500,
startOnPageLoad: false
}
// Ghostium Globals
// ==============
window.GHOSTIUM = {};
GHOSTIUM.haveGA = typeof ga_ua !== 'undefined' && ga_ua !== 'UA-XXXXX-X';
GHOSTIUM.haveDisqus = typeof disqus_shortname !== 'undefined' && disqus_shortname !== 'example';
GHOSTIUM.enablePjax = typeof enable_pjax !== 'undefined' ? enable_pjax : true;
</script>
<script src="../../assets/js/head-scripts.min.js?v=a04fd632d9"></script>
<link rel="canonical" href="index.html">
<meta name="referrer" content="origin-when-cross-origin">
<meta property="og:site_name" content="Coding is Poetry">
<meta property="og:type" content="website">
<meta property="og:title" content="web server - Coding is Poetry">
<meta property="og:url" content="http://nmrony.info/tag/web-server/">
<meta property="article:modified_time" content="2016-09-09T19:12:10.000Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="web server - Coding is Poetry">
<meta name="twitter:url" content="http://nmrony.info/tag/web-server/">
<meta name="twitter:site" content="@nmrony">
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Series",
"publisher": "Coding is Poetry",
"url": "http://nmrony.info/tag/web-server/",
"name": "web server"
}
</script>
<meta name="generator" content="Ghost 0.9">
<link rel="alternate" type="application/rss+xml" title="Coding is Poetry" href="../../rss/index.html">
</head>
<body class="tag-template tag-web-server">
<button data-action="open-drawer" id="drawer-button" class="drawer-button"><i class="fa fa-bars"></i></button>
<nav tabindex="-1" class="drawer">
<div class="drawer-container">
<!--.drawer-search(role="search")-->
<ul role="navigation" class="drawer-list">
<li class="drawer-list-item">
<a href="../../" data-pjax>
<i class="fa fa-home"></i>Home
</a>
</li>
<li class="drawer-list-item">
<a href="../../rss/index.rss" target="_blank" rel="noopener">
<i class="fa fa-rss"></i>Subscribe to Feed
</a>
</li>
<li class="drawer-list-divider">
<li class="drawer-list-item drawer-list-title">
Follow me
</li>
<li class="drawer-list-item">
<a href="https://twitter.com/nmrony" target="_blank" rel="noopener">
<i class="fa fa-twitter"></i>Twitter
</a>
</li>
<li class="drawer-list-item">
<a href="https://github.com/nmrony" target="_blank" rel="noopener">
<i class="fa fa-github"></i>Github
</a>
</li>
<li class="drawer-list-item">
<a href="https://stackoverflow.com/cv/nmrony" target="_blank" rel="noopener">
<i class="fa fa-stack-overflow"></i>Stackoverflow
</a>
</li>
</ul>
</div>
</nav>
<div class="drawer-overlay"></div>
<main id="container" role="main" class="container">
<div class="surface">
<div class="surface-container">
<div data-pjax-container class="content">
<aside role="banner" class="cover">
<div data-load-image="/content/images/2016/08/home-bg.jpg" class="cover-image"></div>
<div class="cover-container">
<a href="../../" class="cover-logo" data-pjax>
<img src="../../content/images/2016/08/rony.jpg" alt="Blog Logo">
</a>
<h1 class="cover-title">Coding is Poetry</h1>
<p class="cover-description">Thoughts, stories and ideas.</p>
</div>
</aside>
<section class="wrapper" tabindex="0">
<div class="wrapper-container">
<header>
<p></p><h2>Posts tagged with <i>web server</i></h2>
<hr>
</header>
<section class="post-list">
<article itemscope itemtype="http://schema.org/BlogPosting" role="article" class="post-item post tag-nginx tag-howto tag-php tag-latest tag-web-server">
<header class="post-item-header">
<h2 itemprop="name" class="post-item-title">
<a href="../../configuring-nginx-virtual-host-with-php-7-0/" itemprop="url" data-pjax title="Configuring Nginx Virtual Host with PHP 7.0">
Configuring Nginx Virtual Host with PHP 7.0
</a>
</h2>
</header>
<section itemprop="description" class="post-item-excerpt">
<p>I was super excited about PHP 7.0 and started using it as soon it was getting some shape. But I also faced some problem while I was configuring PHP 7.0 with Nginx. I…</p>
</section>
<footer class="post-item-footer">
<ul class="post-item-meta-list">
<li class="post-item-meta-item">
<time datetime="2016-02-02" itemprop="datePublished">
7 months ago
</time>
</li>
<li class="post-item-meta-item">
<a itemprop="articleSection" href="../nginx/" data-pjax>nginx</a>,
<a itemprop="keywords" href="../howto/" data-pjax>howto</a>,
<a itemprop="keywords" href="../php/" data-pjax>php</a>,
<a itemprop="keywords" href="../latest/" data-pjax>latest</a>,
<a itemprop="keywords" href="index.html" data-pjax>web server</a>
</li>
<li class="post-item-meta-item">
<a href="../../configuring-nginx-virtual-host-with-php-7-0/index.html#disqus_thread" data-pjax data-disqus-identifier="22">Comments</a>
</li>
</ul>
</footer>
</article>
</section>
<nav role="pagination" class="post-list-pagination">
<span class="post-list-pagination-item post-list-pagination-item-current">Page 1 of 1</span>
</nav>
<footer role="contentinfo" class="footer">
<p><small>© 2016. All Rights Reserved.</small></p>
<p><small>Proudly published with <a href="http://ghost.org" target="_blank">Ghost</a></small></p>
</footer>
</div>
</section>
</div>
</div>
</div>
</main>
<script src="../../assets/js/foot-scripts.min.js?v=a04fd632d9"></script>
<script type="text/javascript">
if(GHOSTIUM.haveGA) {
(function(g,h,o,s,t,z){g.GoogleAnalyticsObject=s;g[s]||(g[s]=
function(){(g[s].q=g[s].q||[]).push(arguments)});g[s].s=+new Date;
t=h.createElement(o);z=h.getElementsByTagName(o)[0];
t.src='//www.google-analytics.com/analytics.js';
z.parentNode.insertBefore(t,z)}(window,document,'script','ga'));
ga('create',ga_ua);ga('send','pageview');
}
if(GHOSTIUM.haveDisqus) {
(function () {
var s = document.createElement('script'); s.async = true;
s.type = 'text/javascript';
s.src = '//' + disqus_shortname + '.disqus.com/count.js';
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
}());
}
</script>
</body>
| Java |
class FavoritesController < ApplicationController
def index
@favorite = Favorite.new
end
def create
@favorite = Favorite.new(favorite_params)
@favorite.user = current_user
if @favorite.save
redirect_to :back
end
end
def destroy
@favorite = Favorite.find(params[:favorite])
@favorite.destroy
end
private
def favorite_params
params.require(:favorite).permit(:busroute)
end
end
| Java |
jsonp({"cep":"02151030","logradouro":"Rua Ant\u00f4nio Vivaldi","bairro":"Jardim Guanca","cidade":"S\u00e3o Paulo","uf":"SP","estado":"S\u00e3o Paulo"});
| Java |
jsonp({"cep":"79110190","logradouro":"Rua Jos\u00e9 Rodrigues Benfica","bairro":"Sobrinho","cidade":"Campo Grande","uf":"MS","estado":"Mato Grosso do Sul"});
| Java |
jsonp({"cep":"71881155","logradouro":"Quadra QN 14E Conjunto 5","bairro":"Riacho Fundo II","cidade":"Bras\u00edlia","uf":"DF","estado":"Distrito Federal"});
| Java |
```R
HYB_subset<-subset(dataset, fly=="HYB")[,-c(1:3)]
ORE_subset<-subset(dataset, fly=="ORE")[,-c(1:3)]
SAM_subset<-subset(dataset, fly=="SAM")[,-c(1:3)]
HYB_dist<-vegdist(decostand(HYB_subset,"pa"),method="jaccard")
ORE_dist<-vegdist(decostand(ORE_subset,"pa"),method="jaccard")
SAM_dist<-vegdist(decostand(SAM_subset,"pa"),method="jaccard")
mantel(ORE_dist,HYB_dist,method="spearman",permutations=9999)
mantel(ORE_dist,SAM_dist,method="spearman",permutations=9999)
mantel(HYB_dist,SAM_dist,method="spearman",permutations=9999)
``` | Java |
# pgen
Perl program to generate XKCD-style passwords
## License
I want there to be NO barriers to using this code, so I am releasing it to the public domain. But "public domain" does not have an internationally agreed upon definition, so I use CC0:
Copyright 2017 Steven Ford http://geeky-boy.com and licensed
"public domain" style under
[CC0](http://creativecommons.org/publicdomain/zero/1.0/):

To the extent possible under law, the contributors to this project have
waived all copyright and related or neighboring rights to this work.
In other words, you can use this code for any purpose without any
restrictions. This work is published from: United States. The project home
is https://github.com/fordsfords/pgen
To contact me, Steve Ford, project owner, you can find my email address
at http://geeky-boy.com. Can't see it? Keep looking.
## Introduction
XKCD had an excellent comic -- https://xkcd.com/936/ -- which proposed a style of password generation consisting of randomly selecting 4 words from a list of ~2000 common words. The result is a password which is more secure and easier to remember than most common methods of password creation.
The pgen program uses a list of 3000 common english words and randomly selects some for a password. I used the program to produce some mildly-interesting results in [my blog](http://blog.geeky-boy.com/2017/07/i-got-to-thinking-about-passwords-again.html).
Here are the interesting features of the program:
* It starts with a set of 3000 words that I put together.
I make use of several "lists of common words" for suggestions, including
[Education First](http://www.ef.edu/english-resources/english-vocabulary/top-3000-words/)
and [Wikipedia](https://en.wiktionary.org/wiki/Wiktionary:Frequency_lists/Contemporary_fiction).
But this is not a simple copy of any of the lists, and I consider it
my own.
I wanted them to be words that most people would understand and know how to
spell.
* It can either use Perl's internal pseudo-random number generator (useful for experimentation and statistics gathering), or it can get random numbers from https://random.org which makes the resulting password properly secure.
You can get help by entering:
./pgen.pl -h
Important: if you plan to actually use the passwords you generate, use "-r"! [Here's why](http://blog.geeky-boy.com/2017/07/pseudo-random-passwords-limit-entropy.html).
To try it out without downloading it, go here:
https://repl.it/@fordsfords/pgen#README.md
Click on the right-hand panel and enter:
./pgen.pl -r
| Java |
jsonp({"cep":"71993190","logradouro":"Conjunto SHA Conjunto 1 Ch\u00e1cara 58B","bairro":"Setor Habitacional Arniqueiras (Taguatinga)","cidade":"Bras\u00edlia","uf":"DF","estado":"Distrito Federal"});
| Java |
jsonp({"cep":"23545460","logradouro":"Caminho da Barreira","bairro":"Sepetiba","cidade":"Rio de Janeiro","uf":"RJ","estado":"Rio de Janeiro"});
| Java |
jsonp({"cep":"91160634","logradouro":"Acesso I Um","bairro":"Rubem Berta","cidade":"Porto Alegre","uf":"RS","estado":"Rio Grande do Sul"});
| Java |
jsonp({"cep":"65605520","logradouro":"Rua Esperantinop\u00f3lis","bairro":"Vila Lob\u00e3o","cidade":"Caxias","uf":"MA","estado":"Maranh\u00e3o"});
| Java |
jsonp({"cep":"24140610","logradouro":"Rua Dona Zulmira Barbosa","bairro":"Baldeador","cidade":"Niter\u00f3i","uf":"RJ","estado":"Rio de Janeiro"});
| Java |
jsonp({"cep":"44009270","logradouro":"Caminho 21","bairro":"Calumbi","cidade":"Feira de Santana","uf":"BA","estado":"Bahia"});
| Java |
jsonp({"cep":"26031340","logradouro":"Rua Tuiuti","bairro":"Floresta","cidade":"Nova Igua\u00e7u","uf":"RJ","estado":"Rio de Janeiro"});
| Java |
# bebraver.github.io
be braver public web
| Java |
jsonp({"cep":"32681394","logradouro":"Rua Boa Viagem","bairro":"Jardim Teres\u00f3polis","cidade":"Betim","uf":"MG","estado":"Minas Gerais"});
| Java |
import {CHANGE_PAGE_ID} from 'actions'
const initialState = null
export default function(state = initialState, action = {}) {
switch (action.type) {
case CHANGE_PAGE_ID:
return action.payload
default:
return state
}
}
| Java |
jsonp({"cep":"18207816","logradouro":"Rua Salvador Costa","bairro":"Tupy","cidade":"Itapetininga","uf":"SP","estado":"S\u00e3o Paulo"});
| Java |
jsonp({"cep":"72003360","logradouro":"Rua Rua 8 Ch\u00e1cara 312","bairro":"Vila S\u00e3o Jos\u00e9 (Taguatinga)","cidade":"Bras\u00edlia","uf":"DF","estado":"Distrito Federal"});
| Java |
jsonp({"cep":"12519460","logradouro":"Rua Maria Benedita Meirelles de Carvalho","bairro":"Jardim do Vale II","cidade":"Guaratinguet\u00e1","uf":"SP","estado":"S\u00e3o Paulo"});
| Java |
jsonp({"cep":"16206017","logradouro":"Rua Oito","bairro":"Distrito Industrial","cidade":"Birig\u00fci","uf":"SP","estado":"S\u00e3o Paulo"});
| Java |
jsonp({"cep":"39402235","logradouro":"Rua Jo\u00e3o Paulo I","bairro":"Francisco Peres I","cidade":"Montes Claros","uf":"MG","estado":"Minas Gerais"});
| Java |
jsonp({"cep":"09341146","logradouro":"Rua Beatriz Helena Costa","bairro":"Jardim Quarto Centen\u00e1rio","cidade":"Mau\u00e1","uf":"SP","estado":"S\u00e3o Paulo"});
| Java |
jsonp({"cep":"44072380","logradouro":"Rua Novo Murumbi","bairro":"Santo Ant\u00f4nio dos Prazeres","cidade":"Feira de Santana","uf":"BA","estado":"Bahia"});
| Java |
jsonp({"cep":"25645044","logradouro":"Vila Maria Joana Garril Foster","bairro":"S\u00e3o Sebasti\u00e3o","cidade":"Petr\u00f3polis","uf":"RJ","estado":"Rio de Janeiro"});
| Java |
'use strict';
var packager = require('electron-packager');
var options = {
'arch': 'ia32',
'platform': 'win32',
'dir': './',
'app-copyright': 'Paulo Galdo',
'app-version': '2.2.5',
'asar': true,
'icon': './app.ico',
'name': 'TierraDesktop',
'out': './releases',
'overwrite': true,
'prune': true,
'version': '1.4.13',
'version-string': {
'CompanyName': 'Paulo Galdo',
'FileDescription': 'Tierra de colores', /*This is what display windows on task manager, shortcut and process*/
'OriginalFilename': 'TierraDesktop',
'ProductName': 'Tierra de colores',
'InternalName': 'TierraDesktop'
}
};
packager(options, function done_callback(err, appPaths) {
console.log("Error: ", err);
console.log("appPaths: ", appPaths);
});
| Java |
"""adding timestamps to all tables
Revision ID: c0a714ade734
Revises: 1a886e694fca
Create Date: 2016-04-20 14:46:06.407765
"""
# revision identifiers, used by Alembic.
revision = 'c0a714ade734'
down_revision = '1a886e694fca'
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
def upgrade(engine_name):
globals()["upgrade_%s" % engine_name]()
def downgrade(engine_name):
globals()["downgrade_%s" % engine_name]()
def upgrade_validation():
### commands auto generated by Alembic - please adjust! ###
op.add_column('field_type', sa.Column('created_at', sa.DateTime(), nullable=True))
op.add_column('field_type', sa.Column('updated_at', sa.DateTime(), nullable=True))
op.add_column('file_columns', sa.Column('created_at', sa.DateTime(), nullable=True))
op.add_column('file_columns', sa.Column('updated_at', sa.DateTime(), nullable=True))
op.add_column('file_type', sa.Column('created_at', sa.DateTime(), nullable=True))
op.add_column('file_type', sa.Column('updated_at', sa.DateTime(), nullable=True))
op.add_column('multi_field_rule', sa.Column('created_at', sa.DateTime(), nullable=True))
op.add_column('multi_field_rule', sa.Column('updated_at', sa.DateTime(), nullable=True))
op.add_column('multi_field_rule_type', sa.Column('created_at', sa.DateTime(), nullable=True))
op.add_column('multi_field_rule_type', sa.Column('updated_at', sa.DateTime(), nullable=True))
op.add_column('rule', sa.Column('created_at', sa.DateTime(), nullable=True))
op.add_column('rule', sa.Column('updated_at', sa.DateTime(), nullable=True))
op.add_column('rule_timing', sa.Column('created_at', sa.DateTime(), nullable=True))
op.add_column('rule_timing', sa.Column('updated_at', sa.DateTime(), nullable=True))
op.add_column('rule_type', sa.Column('created_at', sa.DateTime(), nullable=True))
op.add_column('rule_type', sa.Column('updated_at', sa.DateTime(), nullable=True))
op.add_column('tas_lookup', sa.Column('created_at', sa.DateTime(), nullable=True))
op.add_column('tas_lookup', sa.Column('updated_at', sa.DateTime(), nullable=True))
### end Alembic commands ###
def downgrade_validation():
### commands auto generated by Alembic - please adjust! ###
op.drop_column('tas_lookup', 'updated_at')
op.drop_column('tas_lookup', 'created_at')
op.drop_column('rule_type', 'updated_at')
op.drop_column('rule_type', 'created_at')
op.drop_column('rule_timing', 'updated_at')
op.drop_column('rule_timing', 'created_at')
op.drop_column('rule', 'updated_at')
op.drop_column('rule', 'created_at')
op.drop_column('multi_field_rule_type', 'updated_at')
op.drop_column('multi_field_rule_type', 'created_at')
op.drop_column('multi_field_rule', 'updated_at')
op.drop_column('multi_field_rule', 'created_at')
op.drop_column('file_type', 'updated_at')
op.drop_column('file_type', 'created_at')
op.drop_column('file_columns', 'updated_at')
op.drop_column('file_columns', 'created_at')
op.drop_column('field_type', 'updated_at')
op.drop_column('field_type', 'created_at')
### end Alembic commands ###
| Java |
jsonp({"cep":"54410222","logradouro":"Rua Vinte e Quatro de Maio","bairro":"Piedade","cidade":"Jaboat\u00e3o dos Guararapes","uf":"PE","estado":"Pernambuco"});
| Java |
<?php
/**
* ifeelweb.de WordPress Plugin Framework
* For more information see http://www.ifeelweb.de/wp-plugin-framework
*
*
*
* @author Timo Reith <timo@ifeelweb.de>
* @version $Id: Parser.php 972646 2014-08-25 20:12:32Z worschtebrot $
* @package
*/
class IfwPsn_Wp_WunderScript_Parser
{
/**
* @var IfwPsn_Wp_WunderScript_Parser
*/
protected static $_instance;
/**
* @var IfwPsn_Wp_WunderScript_Parser
*/
protected static $_instanceFile;
/**
* @var IfwPsn_Vendor_Twig_Environment
*/
protected $_env;
/**
* @var IfwPsn_Wp_Plugin_Logger
*/
protected $_logger;
/**
* @var array
*/
protected $_extensions = array();
/**
* Retrieves the default string loader instance
*
* @param array $twigOptions
* @return IfwPsn_Wp_WunderScript_Parser
*/
public static function getInstance($twigOptions=array())
{
if (self::$_instance === null) {
require_once dirname(__FILE__) . '/../Tpl.php';
$options = array_merge(array('twig_loader' => 'String'), $twigOptions);
$env = IfwPsn_Wp_Tpl::factory($options);
self::$_instance = new self($env);
}
return self::$_instance;
}
/**
* Retrieves the file loader instance
*
* @param IfwPsn_Wp_Plugin_Manager $pm
* @param array $twigOptions
* @return IfwPsn_Wp_WunderScript_Parser
*/
public static function getFileInstance(IfwPsn_Wp_Plugin_Manager $pm, $twigOptions=array())
{
if (self::$_instanceFile === null) {
require_once dirname(__FILE__) . '/../Tpl.php';
$env = IfwPsn_Wp_Tpl::getFilesytemInstance($pm, $twigOptions);
self::$_instanceFile = new self($env);
}
return self::$_instanceFile;
}
/**
* @param IfwPsn_Vendor_Twig_Environment $env
*/
protected function __construct(IfwPsn_Vendor_Twig_Environment $env)
{
$this->_env = $env;
$this->_init();
}
protected function _init()
{
$this->_loadExtensions();
}
protected function _loadExtensions()
{
$extensionsPath = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'Extension' . DIRECTORY_SEPARATOR;
require_once $extensionsPath . 'TextFilters.php';
require_once $extensionsPath . 'TextTests.php';
require_once $extensionsPath . 'ListFilters.php';
require_once $extensionsPath . 'Globals.php';
array_push($this->_extensions, new IfwPsn_Wp_WunderScript_Extension_TextFilters());
array_push($this->_extensions, new IfwPsn_Wp_WunderScript_Extension_TextTests());
array_push($this->_extensions, new IfwPsn_Wp_WunderScript_Extension_ListFilters());
array_push($this->_extensions, new IfwPsn_Wp_WunderScript_Extension_Globals());
foreach ($this->_extensions as $extension) {
if ($extension instanceof IfwPsn_Wp_WunderScript_Extension_Interface) {
$extension->load($this->_env);
}
}
}
/**
* @param $string
* @param array $context
* @param null|callable $exceptionHandler
* @return string
*/
public function parse($string, $context = array(), $exceptionHandler = null)
{
if (!empty($string)) {
try {
if ($this->_env->getLoader() instanceof IfwPsn_Vendor_Twig_Loader_String) {
$string = $this->_sanitzeString($string);
}
$string = $this->_env->render($string, $context);
} catch (Exception $e) {
// invalid filter handling
if (is_callable($exceptionHandler)) {
call_user_func_array($exceptionHandler, array($e));
} else {
if ($this->_logger instanceof IfwPsn_Wp_Plugin_Logger) {
$this->_logger->err($e->getMessage());
}
}
}
}
return $string;
}
/**
* @param $string
* @return string
*/
protected function _sanitzeString($string)
{
$replace = array(
'/{{(\s+)/' => '{{',
'/{{ /' => '{{',
'/(\s+)}}/' => '}}',
);
$string = preg_replace(array_keys($replace), array_values($replace), $string);
return $string;
}
/**
* @param \IfwPsn_Wp_Plugin_Logger $logger
*/
public function setLogger($logger)
{
$this->_logger = $logger;
}
/**
* @return \IfwPsn_Wp_Plugin_Logger
*/
public function getLogger()
{
return $this->_logger;
}
}
| Java |
<!--
Automatically generated HTML file from DocOnce source
(https://github.com/hplgit/doconce/)
-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="DocOnce: https://github.com/hplgit/doconce/" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Computational Physics Lectures: Introduction to the course">
<title>Computational Physics Lectures: Introduction to the course</title>
<!-- Bootstrap style: bootstrap -->
<link href="https://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet">
<!-- not necessary
<link href="https://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
-->
<style type="text/css">
/* Add scrollbar to dropdown menus in bootstrap navigation bar */
.dropdown-menu {
height: auto;
max-height: 400px;
overflow-x: hidden;
}
/* Adds an invisible element before each target to offset for the navigation
bar */
.anchor::before {
content:"";
display:block;
height:50px; /* fixed header height for style bootstrap */
margin:-50px 0 0; /* negative fixed header height */
}
</style>
</head>
<!-- tocinfo
{'highest level': 2,
'sections': [('Overview of first week', 2, None, '___sec0'),
('Reading suggestions and exercises', 2, None, '___sec1'),
('Lectures and ComputerLab', 2, None, '___sec2'),
('Course Format', 2, None, '___sec3'),
('Teachers and ComputerLab', 2, None, '___sec4'),
('Deadlines for projects (end of day, tentative deadlines)',
2,
None,
'___sec5'),
('Topics covered in this course', 2, None, '___sec6'),
('Syllabus', 2, None, '___sec7'),
('Syllabus', 2, None, '___sec8'),
('Syllabus', 2, None, '___sec9'),
('Syllabus', 2, None, '___sec10'),
('Syllabus', 2, None, '___sec11'),
('Syllabus', 2, None, '___sec12'),
('Overarching aims of this course', 2, None, '___sec13'),
('Additional learning outcomes', 2, None, '___sec14'),
('Computing knowledge', 2, None, '___sec15'),
('And, there is nothing like a code which gives correct '
'results!!',
2,
None,
'___sec16'),
('Other courses in Computational Science at UiO',
2,
None,
'___sec17'),
('Extremely useful tools, strongly recommended',
2,
None,
'___sec18')]}
end of tocinfo -->
<body>
<!-- Bootstrap navigation bar -->
<div class="navbar navbar-default navbar-fixed-top">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-responsive-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="intro-bs.html">Computational Physics Lectures: Introduction to the course</a>
</div>
<div class="navbar-collapse collapse navbar-responsive-collapse">
<ul class="nav navbar-nav navbar-right">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Contents <b class="caret"></b></a>
<ul class="dropdown-menu">
<!-- navigation toc: --> <li><a href="._intro-bs001.html#___sec0" style="font-size: 80%;">Overview of first week</a></li>
<!-- navigation toc: --> <li><a href="#___sec1" style="font-size: 80%;">Reading suggestions and exercises</a></li>
<!-- navigation toc: --> <li><a href="._intro-bs003.html#___sec2" style="font-size: 80%;">Lectures and ComputerLab</a></li>
<!-- navigation toc: --> <li><a href="._intro-bs004.html#___sec3" style="font-size: 80%;">Course Format</a></li>
<!-- navigation toc: --> <li><a href="._intro-bs005.html#___sec4" style="font-size: 80%;">Teachers and ComputerLab</a></li>
<!-- navigation toc: --> <li><a href="._intro-bs006.html#___sec5" style="font-size: 80%;">Deadlines for projects (end of day, tentative deadlines)</a></li>
<!-- navigation toc: --> <li><a href="._intro-bs007.html#___sec6" style="font-size: 80%;">Topics covered in this course</a></li>
<!-- navigation toc: --> <li><a href="._intro-bs008.html#___sec7" style="font-size: 80%;">Syllabus</a></li>
<!-- navigation toc: --> <li><a href="._intro-bs009.html#___sec8" style="font-size: 80%;">Syllabus</a></li>
<!-- navigation toc: --> <li><a href="._intro-bs010.html#___sec9" style="font-size: 80%;">Syllabus</a></li>
<!-- navigation toc: --> <li><a href="._intro-bs011.html#___sec10" style="font-size: 80%;">Syllabus</a></li>
<!-- navigation toc: --> <li><a href="._intro-bs012.html#___sec11" style="font-size: 80%;">Syllabus</a></li>
<!-- navigation toc: --> <li><a href="._intro-bs013.html#___sec12" style="font-size: 80%;">Syllabus</a></li>
<!-- navigation toc: --> <li><a href="._intro-bs014.html#___sec13" style="font-size: 80%;">Overarching aims of this course</a></li>
<!-- navigation toc: --> <li><a href="._intro-bs015.html#___sec14" style="font-size: 80%;">Additional learning outcomes</a></li>
<!-- navigation toc: --> <li><a href="._intro-bs016.html#___sec15" style="font-size: 80%;">Computing knowledge</a></li>
<!-- navigation toc: --> <li><a href="._intro-bs017.html#___sec16" style="font-size: 80%;">And, there is nothing like a code which gives correct results!!</a></li>
<!-- navigation toc: --> <li><a href="._intro-bs018.html#___sec17" style="font-size: 80%;">Other courses in Computational Science at UiO</a></li>
<!-- navigation toc: --> <li><a href="._intro-bs019.html#___sec18" style="font-size: 80%;">Extremely useful tools, strongly recommended</a></li>
</ul>
</li>
</ul>
</div>
</div>
</div> <!-- end of navigation bar -->
<div class="container">
<p> </p><p> </p><p> </p> <!-- add vertical space -->
<a name="part0002"></a>
<!-- !split -->
<h2 id="___sec1" class="anchor">Reading suggestions and exercises </h2>
<p>
<div class="panel panel-default">
<div class="panel-body">
<p> <!-- subsequent paragraphs come in larger fonts, so start with a paragraph -->
<ul>
<li> Introduction to C++ programming</li>
<li> Numerical precision and C++ programming (chapter 2 of lecture notes)</li>
<li> Numerical differentiation and loss of numerical precision (chapter 3 lecture notes)</li>
</ul>
</div>
</div>
<p>
<p>
<!-- navigation buttons at the bottom of the page -->
<ul class="pagination">
<li><a href="._intro-bs001.html">«</a></li>
<li><a href="._intro-bs000.html">1</a></li>
<li><a href="._intro-bs001.html">2</a></li>
<li class="active"><a href="._intro-bs002.html">3</a></li>
<li><a href="._intro-bs003.html">4</a></li>
<li><a href="._intro-bs004.html">5</a></li>
<li><a href="._intro-bs005.html">6</a></li>
<li><a href="._intro-bs006.html">7</a></li>
<li><a href="._intro-bs007.html">8</a></li>
<li><a href="._intro-bs008.html">9</a></li>
<li><a href="._intro-bs009.html">10</a></li>
<li><a href="._intro-bs010.html">11</a></li>
<li><a href="._intro-bs011.html">12</a></li>
<li><a href="">...</a></li>
<li><a href="._intro-bs019.html">20</a></li>
<li><a href="._intro-bs003.html">»</a></li>
</ul>
<!-- ------------------- end of main content --------------- -->
</div> <!-- end container -->
<!-- include javascript, jQuery *first* -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="https://netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
<!-- Bootstrap footer
<footer>
<a href="http://..."><img width="250" align=right src="http://..."></a>
</footer>
-->
<center style="font-size:80%">
<!-- copyright only on the titlepage -->
</center>
</body>
</html>
| Java |
jsonp({"cep":"86802789","logradouro":"Rua Valdemar Albert Schmaiske","bairro":"Residencial Interlagos","cidade":"Apucarana","uf":"PR","estado":"Paran\u00e1"});
| Java |
-- Saga is Licensed under Creative Commons Attribution-NonCommerial-ShareAlike 3.0 License
-- http://creativecommons.org/licenses/by-nc-sa/3.0/
-- Generated By Quest Extractor on 2/8/2008 3:46:17 PM
local QuestID = 335;
local ReqClv = 12;
local ReqJlv = 0;
local NextQuest = 0;
local RewZeny = 292;
local RewCxp = 675;
local RewJxp = 0;
local RewWxp = 0;
local RewItem1 = 1700113;
local RewItem2 = 0;
local RewItemCount1 = 5;
local RewItemCount2 = 0;
-- Modify steps below for gameplay
function QUEST_VERIFY(cid)
return 0;
end
function QUEST_START(cid)
-- Initialize all quest steps
-- Initialize all starting navigation points
return 0;
end
function QUEST_FINISH(cid)
Saga.GiveZeny(cid, RewZeny);
Saga.GiveExp(cid, RewCxp, RewJxp, RewWxp);
return 0;
end
function QUEST_CANCEL(cid)
return 0;
end
function QUEST_CHECK(cid)
-- Check all steps for progress
local CurStepID = Saga.GetStepIndex(cid, QuestID);
-- TODO: Add code to check all progress
return -1;
end
| Java |
jsonp({"cep":"27935080","logradouro":"Rua Salvador","bairro":"Riviera Fluminense","cidade":"Maca\u00e9","uf":"RJ","estado":"Rio de Janeiro"});
| Java |
jsonp({"cep":"11310900","logradouro":"Rua Frei Gaspar","bairro":"Centro","cidade":"S\u00e3o Vicente","uf":"SP","estado":"S\u00e3o Paulo"});
| Java |
jsonp({"cep":"79831335","logradouro":"Rua Projetada JA","bairro":"Jardim Ayde","cidade":"Dourados","uf":"MS","estado":"Mato Grosso do Sul"});
| Java |
jsonp({"cep":"35030120","logradouro":"Rua Dois de Fevereiro","bairro":"S\u00e3o Paulo","cidade":"Governador Valadares","uf":"MG","estado":"Minas Gerais"});
| Java |
---
layout: reference_md
title: language.paginate.last
summary: 用来描述分页控件_最后一页_按钮的字符串
sub: 文档(Options & API) DataTables中文网
since: DataTables 1.10
navcategory: option
keywords: option,language.paginate.last
author: /reference/option/language.paginate.last
---
## 描述(Description)
分页控件显示将用户带到最后一页的按钮使用的文字。
请注意,DataTables将此属性以HTML格式写入到document,因此你可以在字符串中使用HTML标签,但是 `<` 和 `>`这样的HTML标记应该要用转义字符 `<` 和 `>`分别来描述。
## 类型(Type)
这个选项能够接受以下类型的参数:
- {% include href/Types.html param="string" %}
## 默认值(Default)
- Value :`Last`
## 例子(Example)
给分页控件最后一页按钮设置文字
{% highlight javascript linenos %}
$('#example').DataTable( {
"language": {
"paginate": {
"last": "最后一页"
}
}
} );
{% endhighlight %}
## 相关属性(Related)
下面的选项是直接相关的,也可能是您的应用程序的开发非常有用。
Options
- {% include href/Options.html param="language" %}
- {% include href/Options.html param="language.paginate" %}
- {% include href/Options.html param="language.paginate.first" %}
- {% include href/Options.html param="language.paginate.next" %}
- {% include href/Options.html param="language.paginate.previous" %}
- {% include href/Options.html param="language.aria.paginate" %}
- {% include href/Options.html param="language.aria.paginate.last" %} | Java |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Where is the Min() or Max() or first TRUE or FALSE ?</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="R.css" />
</head><body>
<table width="100%" summary="page for which.min {base}"><tr><td>which.min {base}</td><td style="text-align: right;">R Documentation</td></tr></table>
<h2>Where is the Min() or Max() or first TRUE or FALSE ?</h2>
<h3>Description</h3>
<p>Determines the location, i.e., index of the (first) minimum or maximum
of a numeric (or logical) vector.
</p>
<h3>Usage</h3>
<pre>
which.min(x)
which.max(x)
</pre>
<h3>Arguments</h3>
<table summary="R argblock">
<tr valign="top"><td><code>x</code></td>
<td>
<p>numeric (logical, integer or double) vector or an <span style="font-family: Courier New, Courier; color: #666666;"><b>R</b></span> object
for which the internal coercion to <code><a href="double.html">double</a></code> works whose
<code><a href="Extremes.html">min</a></code> or <code><a href="Extremes.html">max</a></code> is searched for.</p>
</td></tr>
</table>
<h3>Value</h3>
<p>Missing and <code>NaN</code> values are discarded.
</p>
<p>an <code><a href="integer.html">integer</a></code> or on 64-bit platforms, if
<code><a href="length.html">length</a>(x) =: n</code><i>>= 2^31</i> an integer
valued <code><a href="double.html">double</a></code> of length 1 or 0 (iff <code>x</code> has no
non-<code>NA</code>s), giving the index of the <em>first</em> minimum or
maximum respectively of <code>x</code>.
</p>
<p>If this extremum is unique (or empty), the results are the same as
(but more efficient than) <code>which(x == min(x, na.rm = TRUE))</code> or
<code>which(x == max(x, na.rm = TRUE))</code> respectively.
</p>
<h3>Logical <code>x</code> – First <code>TRUE</code> or <code>FALSE</code></h3>
<p>For a <code><a href="logical.html">logical</a></code> vector <code>x</code> with both <code>FALSE</code> and
<code>TRUE</code> values, <code>which.min(x)</code> and <code>which.max(x)</code> return
the index of the first <code>FALSE</code> or <code>TRUE</code>, respectively, as
<code>FALSE < TRUE</code>. However, <code>match(FALSE, x)</code> or
<code>match(TRUE, x)</code> are typically <em>preferred</em>, as they do
indicate mismatches.
</p>
<h3>Author(s)</h3>
<p>Martin Maechler</p>
<h3>See Also</h3>
<p><code><a href="which.html">which</a></code>, <code><a href="maxCol.html">max.col</a></code>, <code><a href="Extremes.html">max</a></code>, etc.
</p>
<p>Use <code><a href="which.html">arrayInd</a>()</code>, if you need array/matrix indices instead
of 1D vector ones.
</p>
<p><code><a href="../../nnet/html/which.is.max.html">which.is.max</a></code> in package <a href="https://CRAN.R-project.org/package=nnet"><span class="pkg">nnet</span></a> differs in
breaking ties at random (and having a ‘fuzz’ in the definition
of ties).
</p>
<h3>Examples</h3>
<pre>
x <- c(1:4, 0:5, 11)
which.min(x)
which.max(x)
## it *does* work with NA's present, by discarding them:
presidents[1:30]
range(presidents, na.rm = TRUE)
which.min(presidents) # 28
which.max(presidents) # 2
## Find the first occurrence, i.e. the first TRUE, if there is at least one:
x <- rpois(10000, lambda = 10); x[sample.int(50, 20)] <- NA
## where is the first value >= 20 ?
which.max(x >= 20)
## Also works for lists (which can be coerced to numeric vectors):
which.min(list(A = 7, pi = pi)) ## -> c(pi = 2L)
</pre>
<hr /><div style="text-align: center;">[Package <em>base</em> version 3.6.1 <a href="00Index.html">Index</a>]</div>
</body></html>
| Java |
# Contribution Guidelines
Please note that this project is released with a [Contributor Code of Conduct](CODE-OF-CONDUCT.md). By participating in this project you agree to abide by its terms.
## Table of Contents
- [Adding to This List](#adding-to-this-list)
- [Updating Your Pull Request](#updating-your-pull-request)
## Adding to This List
Please ensure your pull request adheres to the following guidelines:
* Search open and closed PR's to avoid duplicate suggestions.
* Only submit CSS tips that you think would be useful to others. This implies each tip has enough succinct content to describe why it's useful.
* Add your tip at the bottom of the [README](https://github.com/AllThingsSmitty/css-protips/blob/master/README.md) document. Add a link to your tip at the bottom of the table of contents.
* Use [title-case](https://titlecaseconverter.com/).
* Code formatting should follow standard [CSSLint](http://www.csslint.net) default settings, including:
* Indent with two spaces
* Use shorthand, e.g., `margin: 10px 10px 5px;`
* Use double quotes, e.g., `background: url("logo.svg");`
* Sort properties alphabetically
* Make sure your text editor is set to remove trailing whitespace.
* Check your spelling and grammar.
* The PR should have a useful title.
Thank you for your suggestions!
### Language Translations
If you fluently speak another language and want to contribute by translating this list into that language, please submit a PR using the following guidelines:
* Add a new folder to the [`translations`](https://github.com/AllThingsSmitty/css-protips/tree/master/translations) folder
* The new folder should be labeled the language culture name, e.g, `es-ES`, `ru-RU`, `zh-CN`, etc.
Additionally, feel free to review already translated content for accuracy.
## Updating Your Pull Request
Sometimes a maintainer will ask you to edit your pull request before it's included. This is normally due to spelling errors or because your PR didn't match the above guidlines guidelines. [This write-up](https://github.com/RichardLitt/knowledge/blob/master/github/amending-a-commit-guide.md) covers the different ways you can change a pull request. | Java |
# linkedresearch.org
https://linkedresearch.org/
[](https://gitter.im/linkedresearch/chat)
## License
[CC0 1.0 Universal Public Domain Dedication](https://creativecommons.org/publicdomain/zero/1.0/)
| Java |
## Frontend developer tools
1. Prototyping
- JSBin
- JSFiddle
- Codepen
2. Skeleton
- NPM
- Yeoman - Scaffolding, helps kickstart new projects.
- Bower - Package manager (frameworks, libraries, assets, utilities...)
- Gulp / Grunt - JavaScript task runners, performing repetitive tasks (minification, compilation, unit testing, linting...)
- Frameworks: Bootstrap / Foundation / Primer / Skeleton
3. Code
- Editor / IDE
- Atom
- Sublime
- WebStorm
- VisualStudio
- JavaScript
- [CoffeeScript](http://coffeescript.org/) / [TypeScript](http://www.typescriptlang.org/)
- [Babel](https://babeljs.io/) - Allows to use new syntax, right now without
waiting for browser support.
- [JS Libraries](https://en.wikipedia.org/wiki/List_of_JavaScript_libraries)
- AngularJS
- Node.js, jQuery, Dojo
- HTML
- Jade
- Haml
- Emmet
- CSS
- Sass - CSS with variables, nesting, mixins, inheritance...
- Less
- Methodology:
- [BEM (Block Element Modifier)](https://css-tricks.com/bem-101/)
- [ITCSS (Inverted Triangle CSS)](http://www.creativebloq.com/web-design/manage-large-scale-web-projects-new-css-architecture-itcss-41514731)
- [OOCSS (Object Oriented CSS)](https://www.smashingmagazine.com/2011/12/an-introduction-to-object-oriented-css-oocss/)
- [SMACSS (Scalable and Modular Architecture for CSS)](https://smacss.com/)
- DRY (Don't Repeat Yourself)
- Frameworks
- [Bootstrap](http://getbootstrap.com/)
- [Foundation](http://foundation.zurb.com/)
- [Material UI](https://github.com/callemall/material-ui)
- [Pure.css](http://purecss.io/)
- JavaScript
- AngularJS
- Ember
- Meteor
- React
- Other
- require.js
- browserify
4. Testing
- Karma
- Jasmine
- Mocha
- Chai
- Phantom
5. Debugging
- Chrome Developer tools
- Firefox Developer Edition
6. Distribution
- Require.js
- WebPack
- NPM
- Bower
### Mobile apps
[Apache Cordova](https://cordova.apache.org/) / [PhoneGap]
[Ionic Framework](http://ionicframework.com/)
### Why you need a build system like GRUNT, GULP, BRUNCH for your website
What should a build system do
- Repetitive tasks
- Concatenating JavaScript
Prevents to opening many request for downloading separate js files.
- Prefixing CSS
border-radius: -moz... is unnecessary because build system will add prefix automatically
- Utilities
- JSHint
- Uglify (compress/minify) Javascript
- Local server
- Live Reload
Why is his good for you?
Page Speed
- Less file requests for page load
- Faster file requests
Development Workflow
- You can use cool technologies
- You can break code into multiple files
- Easier to avoid code conflicts
- You can avoid annoying, repetitive tasks
Popular build systems:
GULP - GRUNT - BRUNCH
Gulp is newest
| Java |
jsonp({"cep":"56304190","logradouro":"Avenida Presidente Tancredo Neves","bairro":"Centro","cidade":"Petrolina","uf":"PE","estado":"Pernambuco"});
| Java |
# ChinesePackContinued
Chinese Pack Continued is a part mod containing CZ-1, CZ-2F, CZ-3B, CZ-5 and the Shenzhou spacecraft.
For now, this is only a dev-preview version, and it is very buggy.
Contributors:
mark7 (Project lead, some cfg editing and realism integration)
01010101lzy (Modeling, texturing, some cfg balancing)
Ladeng (Modding advisory, general support, member of Kerwis. I didn't find his profile page)
MMG (cfg editing, testings, aerodynamics)
Wavechaser (cfg editing, MM patching, public relations and support)
Special thanks:
Dragon01 (Modding advisory)
Changelog:
v0.1.5.01Y
Initial release as a dev-preview
- general debugging
v0.1.4.05X
Not released
- added RealPlumes configs to CZ-3B and CZ-5
- added RealFuel configs to CZ-5
- fixed nodes on CZ-1, CZ-3B and CZ-5
- added Shenzhou spacecraft (though a prototype)
v0.1.3.00X
Not released
- finished cfg fixes for CZ-3B and CZ-5
v0.1.0.00X
Not released
- Taken over from Kerwis
| Java |
#!/bin/bash -x
#
# Generated - do not edit!
#
# Macros
TOP=`pwd`
CND_CONF=default
CND_DISTDIR=dist
TMPDIR=build/${CND_CONF}/${IMAGE_TYPE}/tmp-packaging
TMPDIRNAME=tmp-packaging
OUTPUT_PATH=dist/${CND_CONF}/${IMAGE_TYPE}/c_negador2.X.${IMAGE_TYPE}.${OUTPUT_SUFFIX}
OUTPUT_BASENAME=c_negador2.X.${IMAGE_TYPE}.${OUTPUT_SUFFIX}
PACKAGE_TOP_DIR=cnegador2.x/
# Functions
function checkReturnCode
{
rc=$?
if [ $rc != 0 ]
then
exit $rc
fi
}
function makeDirectory
# $1 directory path
# $2 permission (optional)
{
mkdir -p "$1"
checkReturnCode
if [ "$2" != "" ]
then
chmod $2 "$1"
checkReturnCode
fi
}
function copyFileToTmpDir
# $1 from-file path
# $2 to-file path
# $3 permission
{
cp "$1" "$2"
checkReturnCode
if [ "$3" != "" ]
then
chmod $3 "$2"
checkReturnCode
fi
}
# Setup
cd "${TOP}"
mkdir -p ${CND_DISTDIR}/${CND_CONF}/package
rm -rf ${TMPDIR}
mkdir -p ${TMPDIR}
# Copy files and create directories and links
cd "${TOP}"
makeDirectory ${TMPDIR}/cnegador2.x/bin
copyFileToTmpDir "${OUTPUT_PATH}" "${TMPDIR}/${PACKAGE_TOP_DIR}bin/${OUTPUT_BASENAME}" 0755
# Generate tar file
cd "${TOP}"
rm -f ${CND_DISTDIR}/${CND_CONF}/package/cnegador2.x.tar
cd ${TMPDIR}
tar -vcf ../../../../${CND_DISTDIR}/${CND_CONF}/package/cnegador2.x.tar *
checkReturnCode
# Cleanup
cd "${TOP}"
rm -rf ${TMPDIR}
| Java |
jsonp({"cep":"85025400","logradouro":"Rua Em\u00edlio Serrato","bairro":"Vila Bela","cidade":"Guarapuava","uf":"PR","estado":"Paran\u00e1"});
| Java |
jsonp({"cep":"22765527","logradouro":"Rua Aar\u00e3o Steimbruch","bairro":"Gard\u00eania Azul","cidade":"Rio de Janeiro","uf":"RJ","estado":"Rio de Janeiro"});
| Java |
jsonp({"cep":"81310370","logradouro":"Rua Valdyr Grando","bairro":"Cidade Industrial","cidade":"Curitiba","uf":"PR","estado":"Paran\u00e1"});
| Java |
jsonp({"cep":"50060450","logradouro":"Rua Prat\u00e1polis","bairro":"Coelhos","cidade":"Recife","uf":"PE","estado":"Pernambuco"});
| Java |
jsonp({"cep":"03937030","logradouro":"Rua Garapuava","bairro":"Jardim Imperador (Zona Leste)","cidade":"S\u00e3o Paulo","uf":"SP","estado":"S\u00e3o Paulo"});
| Java |
jsonp({"cep":"13310283","logradouro":"Rua Gagliano Micai","bairro":"Vila Cleto","cidade":"Itu","uf":"SP","estado":"S\u00e3o Paulo"});
| Java |
jsonp({"cep":"67040620","logradouro":"Quadra Cinq\u00fcenta e Cinco","bairro":"Centro","cidade":"Ananindeua","uf":"PA","estado":"Par\u00e1"});
| Java |
jsonp({"cep":"09330383","logradouro":"Viela Patax\u00f3","bairro":"Jardim Luzitano","cidade":"Mau\u00e1","uf":"SP","estado":"S\u00e3o Paulo"});
| Java |
jsonp({"cep":"22261020","logradouro":"Rua M\u00e1rio Pederneiras","bairro":"Humait\u00e1","cidade":"Rio de Janeiro","uf":"RJ","estado":"Rio de Janeiro"});
| Java |
jsonp({"cep":"05124030","logradouro":"Pra\u00e7a Doutor Osvaldo Varoli","bairro":"Parque S\u00e3o Domingos","cidade":"S\u00e3o Paulo","uf":"SP","estado":"S\u00e3o Paulo"});
| Java |
jsonp({"cep":"72220261","logradouro":"Quadra QNN 26 Conjunto A","bairro":"Ceil\u00e2ndia Sul (Ceil\u00e2ndia)","cidade":"Bras\u00edlia","uf":"DF","estado":"Distrito Federal"});
| Java |
jsonp({"cep":"08280400","logradouro":"Rua do Cloro","bairro":"Cidade L\u00edder","cidade":"S\u00e3o Paulo","uf":"SP","estado":"S\u00e3o Paulo"});
| Java |
jsonp({"cep":"65068806","logradouro":"Via Local Trezentos e Oito","bairro":"Parque Vit\u00f3ria","cidade":"S\u00e3o Lu\u00eds","uf":"MA","estado":"Maranh\u00e3o"});
| Java |
jsonp({"cep":"16052492","logradouro":"Rua D\u00e9cio Ribeiro de Assun\u00e7\u00e3o","bairro":"Jardim das Oliveiras","cidade":"Ara\u00e7atuba","uf":"SP","estado":"S\u00e3o Paulo"});
| Java |
jsonp({"cep":"79833160","logradouro":"Rua Ponta Por\u00e3","bairro":"Jardim Guanabara","cidade":"Dourados","uf":"MS","estado":"Mato Grosso do Sul"});
| Java |
jsonp({"cep":"03958020","logradouro":"Rua Engenheiro Bernardo Figueiredo","bairro":"Cidade S\u00e3o Mateus","cidade":"S\u00e3o Paulo","uf":"SP","estado":"S\u00e3o Paulo"});
| Java |
jsonp({"cep":"06716640","logradouro":"Rua Bandeirantes","bairro":"Portal da Primavera","cidade":"Cotia","uf":"SP","estado":"S\u00e3o Paulo"});
| Java |
jsonp({"cep":"05329010","logradouro":"Rua Lorenzo Ghiberti","bairro":"Jaguar\u00e9","cidade":"S\u00e3o Paulo","uf":"SP","estado":"S\u00e3o Paulo"});
| Java |
jsonp({"cep":"60015200","logradouro":"Vila Tipuja","bairro":"Farias Brito","cidade":"Fortaleza","uf":"CE","estado":"Cear\u00e1"});
| Java |
jsonp({"cep":"44022182","logradouro":"Rua Marqu\u00eas de Pombal","bairro":"Cruzeiro","cidade":"Feira de Santana","uf":"BA","estado":"Bahia"});
| Java |
jsonp({"cep":"02849050","logradouro":"Rua Jos\u00e9 Lins do Rego","bairro":"Jardim Guarani","cidade":"S\u00e3o Paulo","uf":"SP","estado":"S\u00e3o Paulo"});
| Java |
jsonp({"cep":"04256050","logradouro":"Rua Leandro de Souza","bairro":"S\u00e3o Jo\u00e3o Cl\u00edmaco","cidade":"S\u00e3o Paulo","uf":"SP","estado":"S\u00e3o Paulo"});
| Java |
jsonp({"cep":"38703736","logradouro":"Rua Piracicaba","bairro":"Jardim Esperan\u00e7a","cidade":"Patos de Minas","uf":"MG","estado":"Minas Gerais"});
| Java |
jsonp({"cep":"86043130","logradouro":"Rua Manoel Silva","bairro":"Parque das Ind\u00fastrias","cidade":"Londrina","uf":"PR","estado":"Paran\u00e1"});
| Java |
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="Hugo 0.27.1" />
<title>Fall 2017 - STOR 831 Course site</title>
<meta property="og:title" content="Fall 2017 - STOR 831 Course site">
<link href="/tags/fall-2017/index.xml" rel="alternate" type="application/rss+xml" title="STOR 831 Course site" />
<link rel="stylesheet" href="/css/fonts.css" media="all">
<link rel="stylesheet" href="/css/main.css" media="all">
</head>
<body>
<div class="wrapper">
<header class="header">
<nav class="nav">
<a href="/" class="nav-logo">
<img src="/images/dog.png"
width="50"
height="50"
alt="Logo">
</a>
<ul class="nav-links">
<li><a href="/about/">About</a></li>
<li><a href="/post/">Main page</a></li>
<li><a href="http://shankarbhamidi.web.unc.edu/">Shankar home page</a></li>
</ul>
</nav>
</header>
<main class="content" role="main">
<div class="archive">
<h2 class="archive-title">2017</h2>
<article class="archive-item">
<a href="/2017/09/12/stor-831-fall-2017-schedule/" class="archive-item-link">STOR 831 Fall 2017 Schedule</a>
<span class="archive-item-date">
2017/09/12
</span>
</article>
<article class="archive-item">
<a href="/2017/09/10/stor-831-course-description/" class="archive-item-link">STOR 831 Course description</a>
<span class="archive-item-date">
2017/09/10
</span>
</article>
</div>
</main>
<footer class="footer">
<ul class="footer-links">
<li>
<a href="/index.xml" type="application/rss+xml" target="_blank">RSS feed</a>
</li>
<li>
<a href="https://gohugo.io/" class="footer-links-kudos">Made with <img src="/images/hugo-logo.png" width="22" height="22"></a>
</li>
</ul>
</footer>
</div>
</body>
</html>
| Java |
jsonp({"cep":"29706634","logradouro":"Rua Jos\u00e9 Xavier Pereira","bairro":"Industrial Alves Marques","cidade":"Colatina","uf":"ES","estado":"Esp\u00edrito Santo"});
| Java |
<!DOCTYPE html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Expires" content="-1">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<title>105年第十四任總統副總統及第九屆立法委員選舉</title>
<link href="../css/style.css" rel="stylesheet" type="text/css">
<link href="../css/style2.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="../js/ftiens4.js"></script>
<script type="text/javascript" src="../js/ua.js"></script>
<script type="text/javascript" src="../js/func.js"></script>
<script type="text/javascript" src="../js/treeT.js"></script>
<script type="text/javascript" src="../js/refresh.js"></script>
</head>
<body id="main-body">
<div id="main-header">
<div id="main-top">
<a class="main-top-logo" href="#">中央選舉委員會</a>
<ul class="main-top-list">
<li class="main-top-item"><a class="main-top-link main-top-link-home" href="../index.html">回首頁</a></li>
<li class="main-top-item"><a class="main-top-link main-top-link-cec" href="http://2016.cec.gov.tw">中選會網站</a></li>
<li class="main-top-item"><a class="main-top-link main-top-link-english" href="../../en/index.html">English</a></li>
</ul>
</div>
</div>
<div id="main-wrap">
<div id="main-banner">
<div class="slideshow">
<img src="../img/main_bg_2.jpg" width="1024" height="300" alt="background" title="background">
</div>
<div class="main-deco"></div>
<div class="main-title"></div>
<a class="main-pvpe" href="../IDX/indexP1.html">總統副總統選舉</a>
<a class="main-le main-le-current" href="../IDX/indexT.html">立法委員選舉</a>
</div>
<div id="main-container">
<div id="main-content">
<table width="1024" border="1" cellpadding="0" cellspacing="0">
<tr>
<td width="180" valign="top">
<div id="divMenu">
<table border="0">
<tr>
<td><a style="text-decoration:none;color:silver" href="http://www.treemenu.net/" target=_blank></a></td>
</tr>
</table>
<span class="TreeviewSpanArea">
<script>initializeDocument()</script>
<noscript>請開啟Javascript功能</noscript>
</span>
</div>
</td>
<td width="796" valign="top">
<div id="divContent">
<!-- 修改區塊 -->
<table width="100%" border="0" cellpadding="0" cellspacing="4">
<tr>
<td><img src="../images/search.png" alt="候選人得票數" title="候選人得票數"> <b>區域立法委員選舉 新北市 第3選舉區 候選人得票數 </b></td>
</tr>
<tr valign="bottom">
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr valign="bottom">
<td class="fontNumber"> <img src="../images/nav.gif" alt="候選人數" title="候選人數"> <img src="../images/nav.gif" alt="候選人數" title="候選人數"> 候選人數:9 <img src="../images/nav.gif" alt="應選人數" title="應選人數"> <img src="../images/nav.gif" alt="應選人數" title="應選人數"> 應選人數:1
<!--<img src="../images/nav.gif" alt="應有婦女當選名額" title="應有婦女當選名額"> <img src="../images/nav.gif" alt="應有婦女當選名額" title="應有婦女當選名額"> 應有婦女當選名額:0-->
</td>
<td align="right">
<select name="selector_order" class="selectC" tabindex="1" id="orderBy" onChange="changeOrder();">
<option value="n">依號次排序</option>
<option value="s">依得票排序</option>
</select>
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td>
<table width="100%" border="0" cellpadding="6" cellspacing="1" class="tableT">
<tr class="trHeaderT">
<td>註記</td>
<td>號次</td>
<td>姓名</td>
<td>性別</td>
<td>得票數</td>
<td>得票率%</td>
<td>推薦之政黨</td>
</tr>
<tr class="trT">
<td> </td>
<td>1</td>
<td>陳長發</td>
<td>男</td>
<td class="tdAlignRight">655</td>
<td class="tdAlignRight">0.3700</td>
<td>大愛憲改聯盟</td>
</tr>
<tr class="trT">
<td> </td>
<td>2</td>
<td>蕭忠漢</td>
<td>男</td>
<td class="tdAlignRight">546</td>
<td class="tdAlignRight">0.3084</td>
<td>健保免費連線</td>
</tr>
<tr class="trT">
<td> </td>
<td>3</td>
<td>李乾龍</td>
<td>男</td>
<td class="tdAlignRight">62,723</td>
<td class="tdAlignRight">35.4311</td>
<td>中國國民黨</td>
</tr>
<tr class="trT">
<td>◎</td>
<td>4</td>
<td>高志鵬</td>
<td>男</td>
<td class="tdAlignRight">96,557</td>
<td class="tdAlignRight">54.5433</td>
<td>民主進步黨</td>
</tr>
<tr class="trT">
<td> </td>
<td>5</td>
<td>張碩文</td>
<td>男</td>
<td class="tdAlignRight">13,375</td>
<td class="tdAlignRight">7.5553</td>
<td>親民黨</td>
</tr>
<tr class="trT">
<td> </td>
<td>6</td>
<td>林其瑩</td>
<td>男</td>
<td class="tdAlignRight">1,114</td>
<td class="tdAlignRight">0.6293</td>
<td>社會福利黨</td>
</tr>
<tr class="trT">
<td> </td>
<td>7</td>
<td>姚胤宏</td>
<td>男</td>
<td class="tdAlignRight">1,314</td>
<td class="tdAlignRight">0.7423</td>
<td>樹黨</td>
</tr>
<tr class="trT">
<td> </td>
<td>8</td>
<td>黃茂</td>
<td>男</td>
<td class="tdAlignRight">315</td>
<td class="tdAlignRight">0.1779</td>
<td>無</td>
</tr>
<tr class="trT">
<td> </td>
<td>9</td>
<td>蘇卿彥</td>
<td>男</td>
<td class="tdAlignRight">429</td>
<td class="tdAlignRight">0.2423</td>
<td>無</td>
</tr>
<tr class="trFooterT">
<td colspan="7" align="right">投開票所數 已送/應送: 195/195 </td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="10"></td>
<td valign="top" class="fontNote">
<table>
<tr>
<td>註記說明:</td>
<td align="center">◎</td>
<td>當選註記</td>
</tr>
<tr>
<td></td>
<td align="center">?</td>
<td>同票待抽籤</td>
</tr>
</table>
</td>
<td valign="top" class="fontTimer"><img src="../images/clock2.png" alt="Sat, 16 Jan 2016 21:30:10 +0800" title="Sat, 16 Jan 2016 21:30:10 +0800"> 資料更新時間:01/16 21:30:06 <br>(網頁每3分鐘自動更新一次)</td>
</tr>
<tr>
<td colspan="3" class="fontNote"></td>
</tr>
</table>
</td>
</tr>
</table>
<!-- 修改區塊 -->
</div>
</td>
</tr>
</table>
</div>
<div class="main-footer"></div>
<div id="divFooter">[中央選舉委員會] </div>
<!--main-content-->
</div><!--main-container-->
</div><!--END main-wrap-->
<script>setOrder();</script>
<script>setMenuScrollPosY();</script>
</body>
</html>
| Java |
jsonp({"cep":"79103835","logradouro":"Travessa do Livro","bairro":"Vila S\u00edlvia Regina","cidade":"Campo Grande","uf":"MS","estado":"Mato Grosso do Sul"});
| Java |
jsonp({"cep":"05856080","logradouro":"Travessa Janu\u00e1rio da Cunha","bairro":"Parque Sonia","cidade":"S\u00e3o Paulo","uf":"SP","estado":"S\u00e3o Paulo"});
| Java |
jsonp({"cep":"23036250","logradouro":"Rua do Poente","bairro":"Guaratiba","cidade":"Rio de Janeiro","uf":"RJ","estado":"Rio de Janeiro"});
| Java |
jsonp({"cep":"12228830","logradouro":"Rua Brejauveiras","bairro":"Campus do CTA","cidade":"S\u00e3o Jos\u00e9 dos Campos","uf":"SP","estado":"S\u00e3o Paulo"});
| Java |
jsonp({"cep":"66625770","logradouro":"Passagem Tr\u00eas de Julho","bairro":"Cabanagem","cidade":"Bel\u00e9m","uf":"PA","estado":"Par\u00e1"});
| Java |
jsonp({"cep":"13485159","logradouro":"Rua Fernando Aliberti","bairro":"ANAVEC","cidade":"Limeira","uf":"SP","estado":"S\u00e3o Paulo"});
| Java |
jsonp({"cep":"57071060","logradouro":"Rua Eduardo Jorge Lopes Novaes","bairro":"Clima Bom","cidade":"Macei\u00f3","uf":"AL","estado":"Alagoas"});
| Java |
jsonp({"cep":"58020550","logradouro":"Rua Murilo Lemos","bairro":"Roger","cidade":"Jo\u00e3o Pessoa","uf":"PB","estado":"Para\u00edba"});
| Java |
jsonp({"cep":"84052230","logradouro":"Rua Caramuru","bairro":"Contorno","cidade":"Ponta Grossa","uf":"PR","estado":"Paran\u00e1"});
| Java |
jsonp({"cep":"88067305","logradouro":"Rua das Opalas","bairro":"P\u00e2ntano do Sul","cidade":"Florian\u00f3polis","uf":"SC","estado":"Santa Catarina"});
| Java |
jsonp({"cep":"06824130","logradouro":"Rua Palmeiras das Miss\u00f5es","bairro":"Jardim da Luz","cidade":"Embu das Artes","uf":"SP","estado":"S\u00e3o Paulo"});
| Java |
jsonp({"cep":"11714900","logradouro":"Rodovia Padre Manoel da N\u00f3brega","bairro":"Balne\u00e1rio Japura","cidade":"Praia Grande","uf":"SP","estado":"S\u00e3o Paulo"});
| Java |
<!DOCTYPE html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Expires" content="-1">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<title>105年第十四任總統副總統及第九屆立法委員選舉</title>
<link href="../css/style.css" rel="stylesheet" type="text/css">
<link href="../css/style2.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="../js/ftiens4.js"></script>
<script type="text/javascript" src="../js/ua.js"></script>
<script type="text/javascript" src="../js/func.js"></script>
<script type="text/javascript" src="../js/treeT.js"></script>
<script type="text/javascript" src="../js/refresh.js"></script>
</head>
<body id="main-body">
<div id="main-header">
<div id="main-top">
<a class="main-top-logo" href="#">中央選舉委員會</a>
<ul class="main-top-list">
<li class="main-top-item"><a class="main-top-link main-top-link-home" href="../index.html">回首頁</a></li>
<li class="main-top-item"><a class="main-top-link main-top-link-cec" href="http://2016.cec.gov.tw">中選會網站</a></li>
<li class="main-top-item"><a class="main-top-link main-top-link-english" href="../../en/index.html">English</a></li>
</ul>
</div>
</div>
<div id="main-wrap">
<div id="main-banner">
<div class="slideshow">
<img src="../img/main_bg_2.jpg" width="1024" height="300" alt="background" title="background">
</div>
<div class="main-deco"></div>
<div class="main-title"></div>
<a class="main-pvpe" href="../IDX/indexP1.html">總統副總統選舉</a>
<a class="main-le main-le-current" href="../IDX/indexT.html">立法委員選舉</a>
</div>
<div id="main-container">
<div id="main-content">
<table width="1024" border="1" cellpadding="0" cellspacing="0">
<tr>
<td width="180" valign="top">
<div id="divMenu">
<table border="0">
<tr>
<td><a style="text-decoration:none;color:silver" href="http://www.treemenu.net/" target=_blank></a></td>
</tr>
</table>
<span class="TreeviewSpanArea">
<script>initializeDocument()</script>
<noscript>請開啟Javascript功能</noscript>
</span>
</div>
</td>
<td width="796" valign="top">
<div id="divContent">
<!-- 修改區塊 -->
<table width="100%" border="0" cellpadding="0" cellspacing="4">
<tr>
<td><img src="../images/search.png" alt="候選人得票數" title="候選人得票數"> <b>區域立法委員選舉 臺中市 第2選舉區 候選人得票數 </b></td>
</tr>
<tr valign="bottom">
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr valign="bottom">
<td class="fontNumber"> <img src="../images/nav.gif" alt="候選人數" title="候選人數"> <img src="../images/nav.gif" alt="候選人數" title="候選人數"> 候選人數:4 <img src="../images/nav.gif" alt="應選人數" title="應選人數"> <img src="../images/nav.gif" alt="應選人數" title="應選人數"> 應選人數:1
<!--<img src="../images/nav.gif" alt="應有婦女當選名額" title="應有婦女當選名額"> <img src="../images/nav.gif" alt="應有婦女當選名額" title="應有婦女當選名額"> 應有婦女當選名額:0-->
</td>
<td align="right">
<select name="selector_order" class="selectC" tabindex="1" id="orderBy" onChange="changeOrder();">
<option value="n">依號次排序</option>
<option value="s">依得票排序</option>
</select>
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td>
<table width="100%" border="0" cellpadding="6" cellspacing="1" class="tableT">
<tr class="trHeaderT">
<td>註記</td>
<td>號次</td>
<td>姓名</td>
<td>性別</td>
<td>得票數</td>
<td>得票率%</td>
<td>推薦之政黨</td>
</tr>
<tr class="trT">
<td> </td>
<td>1</td>
<td>陳世凱</td>
<td>男</td>
<td class="tdAlignRight">87,596</td>
<td class="tdAlignRight">43.7108</td>
<td>民主進步黨</td>
</tr>
<tr class="trT">
<td>◎</td>
<td>2</td>
<td>顏寬恒</td>
<td>男</td>
<td class="tdAlignRight">93,495</td>
<td class="tdAlignRight">46.6544</td>
<td>中國國民黨</td>
</tr>
<tr class="trT">
<td> </td>
<td>3</td>
<td>鍾文龍</td>
<td>男</td>
<td class="tdAlignRight">1,370</td>
<td class="tdAlignRight">0.6836</td>
<td>無</td>
</tr>
<tr class="trT">
<td> </td>
<td>4</td>
<td>紀國棟</td>
<td>男</td>
<td class="tdAlignRight">17,938</td>
<td class="tdAlignRight">8.9511</td>
<td>無</td>
</tr>
<tr class="trFooterT">
<td colspan="7" align="right">投開票所數 已送/應送: 216/216 </td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="10"></td>
<td valign="top" class="fontNote">
<table>
<tr>
<td>註記說明:</td>
<td align="center">◎</td>
<td>當選註記</td>
</tr>
<tr>
<td></td>
<td align="center">?</td>
<td>同票待抽籤</td>
</tr>
</table>
</td>
<td valign="top" class="fontTimer"><img src="../images/clock2.png" alt="Sat, 16 Jan 2016 22:27:11 +0800" title="Sat, 16 Jan 2016 22:27:11 +0800"> 資料更新時間:01/16 22:27:06 <br>(網頁每3分鐘自動更新一次)</td>
</tr>
<tr>
<td colspan="3" class="fontNote"></td>
</tr>
</table>
</td>
</tr>
</table>
<!-- 修改區塊 -->
</div>
</td>
</tr>
</table>
</div>
<div class="main-footer"></div>
<div id="divFooter">[中央選舉委員會] </div>
<!--main-content-->
</div><!--main-container-->
</div><!--END main-wrap-->
<script>setOrder();</script>
<script>setMenuScrollPosY();</script>
</body>
</html>
| Java |
'use strict';
var _index = require('/Users/markmiro/proj/ui-experiments/node_modules/babel-preset-react-hmre/node_modules/redbox-react/lib/index.js');
var _index2 = _interopRequireDefault(_index);
var _index3 = require('/Users/markmiro/proj/ui-experiments/node_modules/babel-preset-react-hmre/node_modules/react-transform-catch-errors/lib/index.js');
var _index4 = _interopRequireDefault(_index3);
var _react2 = require('react');
var _react3 = _interopRequireDefault(_react2);
var _index5 = require('/Users/markmiro/proj/ui-experiments/node_modules/babel-preset-react-hmre/node_modules/react-transform-hmr/lib/index.js');
var _index6 = _interopRequireDefault(_index5);
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Row = undefined;
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
var _components = {
Row: {
displayName: 'Row'
}
};
var _UsersMarkmiroProjUiExperimentsNode_modulesBabelPresetReactHmreNode_modulesReactTransformHmrLibIndexJs2 = (0, _index6.default)({
filename: 'src/modules/Row.js',
components: _components,
locals: [module],
imports: [_react3.default]
});
var _UsersMarkmiroProjUiExperimentsNode_modulesBabelPresetReactHmreNode_modulesReactTransformCatchErrorsLibIndexJs2 = (0, _index4.default)({
filename: 'src/modules/Row.js',
components: _components,
locals: [],
imports: [_react3.default, _index2.default]
});
function _wrapComponent(id) {
return function (Component) {
return _UsersMarkmiroProjUiExperimentsNode_modulesBabelPresetReactHmreNode_modulesReactTransformHmrLibIndexJs2(_UsersMarkmiroProjUiExperimentsNode_modulesBabelPresetReactHmreNode_modulesReactTransformCatchErrorsLibIndexJs2(Component, id), id);
};
}
var Row = exports.Row = _wrapComponent('Row')(function (_React$Component) {
_inherits(Row, _React$Component);
function Row() {
_classCallCheck(this, Row);
return _possibleConstructorReturn(this, Object.getPrototypeOf(Row).apply(this, arguments));
}
_createClass(Row, [{
key: 'render',
value: function render() {
return _react3.default.createElement(
'div',
null,
this.props.children.map(function (child, i) {
return _react3.default.createElement(
'div',
{ key: i, style: { width: '50%', display: 'inline-block' } },
child
);
})
);
}
}]);
return Row;
}(_react3.default.Component)); | Java |
<?php
session_start();
include_once("db_connection.php");
include ("login_required.php");
if(!empty($_POST["exercise_name"])){
$exercise_name = $_POST["exercise_name"];
$exerciseid_fk = $_POST["exerciseid"];
$sessionid_fk = $_POST["sessionid"];
$sql1 = "SELECT exerciseid FROM exercise WHERE exercise_name ='$exercise_name'";
$id = "";
$result = $conn->query($sql1);
if($result->num_rows > 0 ){
while ($row = $result->fetch_assoc()){
$id = $row["exerciseid"];
}
}
$sql = /** @lang text */
"INSERT INTO results(exerciseid_fk,sessionid_fk)
VALUES ('$id','$sessionid_fk')";
if($conn->query($sql) == TRUE) {
$maks = 0;
$sql2 = /** @lang text */
"Select max(resultid) as maks from results";
$result2 = $conn->query($sql2);
if($result2->num_rows > 0 ){
while ($row2 = $result2->fetch_assoc()){
$maks = $row2["maks"];
}
}
echo $maks;
}
else{
header('HTTP/1.0 404 not found');
}
}
| Java |
jsonp({"cep":"26010250","logradouro":"Rua Grijo","bairro":"Vila Santos Neto","cidade":"Nova Igua\u00e7u","uf":"RJ","estado":"Rio de Janeiro"});
| Java |
jsonp({"cep":"88351776","logradouro":"Rua Leonilda Leoni Pedrini","bairro":"S\u00e3o Pedro","cidade":"Brusque","uf":"SC","estado":"Santa Catarina"});
| Java |
jsonp({"cep":"44570400","logradouro":"Travessa Aracaju","bairro":"Sobradinho","cidade":"Santo Ant\u00f4nio de Jesus","uf":"BA","estado":"Bahia"});
| Java |
jsonp({"cep":"22775112","logradouro":"Rua Cunha Moreira","bairro":"Taquara","cidade":"Rio de Janeiro","uf":"RJ","estado":"Rio de Janeiro"});
| Java |
jsonp({"cep":"78335000","cidade":"Colniza","uf":"MT","estado":"Mato Grosso"});
| Java |
jsonp({"cep":"81490292","logradouro":"Rua Francisca Veiga do Amaral","bairro":"Campo de Santana","cidade":"Curitiba","uf":"PR","estado":"Paran\u00e1"});
| Java |
jsonp({"cep":"74937510","logradouro":"Rua H 152","bairro":"Cidade Vera Cruz","cidade":"Aparecida de Goi\u00e2nia","uf":"GO","estado":"Goi\u00e1s"});
| Java |
jsonp({"cep":"74683630","logradouro":"Rua GB-0023","bairro":"Jardim Guanabara II","cidade":"Goi\u00e2nia","uf":"GO","estado":"Goi\u00e1s"});
| Java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.