One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| #!/usr/bin/python | |
| # -*- coding: utf-8 -*- | |
| # | |
| # Fabric 0.9/1.x – Synchronize files in a project folder with webserver | |
| from fabric.api import env | |
| from fabric.contrib.project import rsync_project | |
| env.hosts = ['domain.com'] | |
| env.path = '/home/user/project/' |
| import ast | |
| import os | |
| from pyflakes import checker, messages | |
| import sys | |
| from django.conf import settings | |
| from django.core.management.base import BaseCommand | |
| # BlackHole, PySyntaxError and checking based on | |
| # https://github.com/patrys/gedit-pyflakes-plugin.git |
| # coding: utf8 | |
| xml = '''<?xml version="1.0" encoding="UTF-8"?> | |
| <soft> | |
| <os> | |
| <item name="linux" dist="ubuntu"> | |
| This text about linux | |
| </item> | |
| <item name="mac os"> | |
| Apple company |
| <Directory "/Users/jdog/Sites/"> | |
| Options Indexes MultiViews | |
| AllowOverride None | |
| Order allow,deny | |
| Allow from all | |
| </Directory> | |
| <VirtualHost *:80> | |
| ServerName localhost | |
| DocumentRoot /Users/jdog/Sites/ |
| <?php | |
| /* Caveat: I'm not a PHP programmer, so this may or may | |
| * not be the most idiomatic code... | |
| * | |
| * FPDF is a free PHP library for creating PDFs: | |
| * http://www.fpdf.org/ | |
| */ | |
| require("fpdf.php"); | |
| class PDF extends FPDF { |
| #!/bin/sh | |
| # one way (older scala version will be installed) | |
| # sudo apt-get install scala | |
| #2nd way | |
| sudo apt-get remove scala-library scala | |
| wget http://www.scala-lang.org/files/archive/scala-2.11.4.deb | |
| sudo dpkg -i scala-2.11.4.deb | |
| sudo apt-get update |
| var redis = require('redis'), | |
| client = redis.createClient(); | |
| var arr = ["some val","some val2","some val3"]; | |
| //Use multi() to pipeline multiple commands at once | |
| var multi = client.multi(); | |
| for (var i=0; i<arr.length; i++) { | |
| //console.log(arr[i]); | |
| //將一個或多個值value插入到列表key的表尾。 |