Быстрее всего эти операции проделывать в терминале, заглядывая в браузер за ссылкой на новый файл.
Переходим в каталог /opt
— он специально для всякого говна не из репозиториев:
ಠ_ಠ | |
( ͡° ͜ʖ ͡°) | |
¯\_(ツ)_/¯ | |
(╯°□°)╯︵ ┻━┻ | |
http://www.fileformat.info/convert/text/upside-down.htm | |
WRTTN http://wrttn.me/30dbfd/ | |
Unicode Emoticons |
// Takes a URL, param name, and data string | |
// Sends to the server.. The server can respond with binary data to download | |
jQuery.download = function(url, key, data){ | |
// Build a form | |
var form = $('<form></form>').attr('action', url).attr('method', 'post'); | |
// Add the one key/value | |
form.append($("<input></input>").attr('type', 'hidden').attr('name', key).attr('value', data)); | |
//send request | |
form.appendTo('body').submit().remove(); |
def rolling_window(array, window=(0,), asteps=None, wsteps=None, axes=None, toend=True): | |
"""Create a view of `array` which for every point gives the n-dimensional | |
neighbourhood of size window. New dimensions are added at the end of | |
`array` or after the corresponding original dimension. | |
Parameters | |
---------- | |
array : array_like | |
Array to which the rolling window is applied. | |
window : int or tuple |
# -*- coding: utf-8 -*- | |
""" | |
Скрипт для скачивания музыки с сайта vkontakte.ru (vk.com) | |
Запуск: | |
python vkcom_audio_download.py | |
Принцип работы: | |
Скрипт проверяет сохраненный access_token. Если его нет или срок истек, | |
то открывается страница в браузере с запросом на доступ к аккаунту. |
server { | |
server_name img.l; | |
root /var/www/cache/store/ns365; | |
index index.html; | |
# This requests the original file from itself and then resizes the image. | |
location ~ /resize/(\d+)x(\d+)/(.*) { | |
proxy_pass http://img.l/$3; | |
image_filter resize $1 $2; | |
image_filter_jpeg_quality 90; |
/** | |
* Prefilter for caching ajax calls - adapted from | |
* https://github.com/paulirish/jquery-ajax-localstorage-cache, made to work with jqXHR Deferred Promises. | |
* See also $.ajaxTransport. | |
* New parameters available on the ajax call: | |
* localCache : true, // required if we want to use the cache functionality | |
* cacheTTL : 1, // in hours. Optional | |
* cacheKey : 'post', // optional | |
* isCacheValid : function // optional - return true for valid, false for invalid | |
* @method $.ajaxPrefilter |
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import subprocess | |
__all__ = ["transform"] | |
__version__ = '0.3' | |
__author__ = 'Christoph Burgmer <cburgmer@ira.uka.de>' | |
__url__ = 'http://github.com/cburgmer/upsidedown' |
var a = 123, b = 'hello'; | |
function test(x, y) { | |
console.log(this); | |
return a + x + b + y; | |
} | |
// Serialize a function *with its captured environment* | |
var sf = serialize(test, { a: a, b: b }); | |
// Deserialize with captured environment |