This document now exists on the official ASP.NET core docs page.
- Application
- Request Handling
This document now exists on the official ASP.NET core docs page.
Это краткая памятка, которая подходит во время вспышки любого респираторного вирусного заболевания. Я ее пишу не для того, чтобы вы срочно начинали все это делать - никакого повода нет. Но, если вы хотите снизить вероятность получения или распространения вирусов - прочитайте.
| import csv | |
| import io | |
| def import_csv(request): | |
| if request.method == 'POST' and request.FILES['myfile']: | |
| myfile = request.FILES['myfile'] | |
| # Read csv file InMemoryUploadedFile | |
| file = myfile.read().decode('utf-8') |
| upstream unicorn { | |
| server unix:/tmp/unicorn.store.sock fail_timeout=0; | |
| } | |
| server { | |
| listen 80 default deferred; | |
| # To enable ssl on your server for checkout and admin functionality | |
| # add this line | |
| listen 443 ssl; |
| #!/bin/bash | |
| ## uploading to google | |
| ## rev: 22 Aug 2012 16:07 | |
| det=`date +%F` | |
| browser="Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:13.0) Gecko/20100101 Firefox/13.0.1" | |
| username="[email protected]" | |
| password="password" | |
| accountype="HOSTED" #gooApps = HOSTED , gmail=GOOGLE |
| <html xmlns:fb="http://ogp.me/ns/fb#"> | |
| <head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# oghowto: http://ogp.me/ns/fb/oghowto#"> | |
| <title>OG Tutorial App</title> | |
| <meta property="fb:app_id" content="256521937796214" /> | |
| <meta property="og:type" content="oghowto:demo" /> | |
| <meta property="og:title" content="Open Graph HowTo" /> | |
| <meta property="og:image" content="http://placehold.it/200x200" /> | |
| <meta property="og:description" content="Minimum requirements to get Open Graph objects and actions working" /> | |
| <meta property="og:url" content="http://oghowto.herokuapp.com/test.html"> | |
| <style type="text/css"> |
cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages
git clone git://github.com/jashkenas/coffee-script-tmbundle CoffeeScript
git clone https://github.com/miksago/jade-tmbundle.git Jade
git clone https://github.com/LearnBoost/stylus.git Stylus
# This example does an AJAX lookup and is in CoffeeScript
$('.typeahead').typeahead(
# source can be a function
source: (typeahead, query) ->
# this function receives the typeahead object and the query string| [url, height, width, output_dir] = phantom.args | |
| console.log("url #{url}, height #{height}, width #{width}, output_dir #{output_dir}") | |
| page = require('webpage').create() | |
| page.viewportSize = | |
| width: width | |
| height: height | |
| page.onConsoleMessage = (msg) -> |
| require 'spork' | |
| Spork.prefork do | |
| # Loading more in this block will cause your tests to run faster. However, | |
| # if you change any configuration or code from libraries loaded here, you'll | |
| # need to restart spork for it take effect. | |
| # This file is copied to spec/ when you run 'rails generate rspec:install' | |
| ENV["RAILS_ENV"] ||= 'test' | |
| require File.expand_path("../../config/environment", __FILE__) |