Facebook Share
Стандартная кнопка для “шаринга” URL с дополнительным текстом. HTTP-endpoint: http://www.facebook.com/sharer.php Параметры: u — url t — сопровождающий текст UPD: Для передачи описания страницы используйте OpenGraph, обсуждение на SO
Facebook Share
Стандартная кнопка для “шаринга” URL с дополнительным текстом. HTTP-endpoint: http://www.facebook.com/sharer.php Параметры: u — url t — сопровождающий текст UPD: Для передачи описания страницы используйте OpenGraph, обсуждение на SO
| jQuery('a[target^="_new"]').click(function() { | |
| return openWindow(this.href); | |
| } | |
| function openWindow(url) { | |
| if (window.innerWidth <= 640) { | |
| // if width is smaller then 640px, create a temporary a elm that will open the link in new tab | |
| var a = document.createElement('a'); |
| import os, codecs | |
| for (dir, _, files) in os.walk("./"): | |
| for f in files: | |
| path = os.path.join(dir, f) | |
| if f.endswith(('php')): | |
| if os.path.exists(path): | |
| data = open(path, "rb").read() | |
| print(path) | |
| if data.startswith(codecs.BOM_UTF8): | |
| continue |
| jQuery.fn.extend( | |
| { | |
| scrollTo : function(speed, easing) | |
| { | |
| return this.each(function() | |
| { | |
| var targetOffset = $(this).offset().top; | |
| $('html,body').animate({scrollTop: targetOffset}, speed, easing); | |
| }); | |
| } |
| function getSslPage($url) | |
| { | |
| $ch = curl_init(); | |
| curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); | |
| curl_setopt($ch, CURLOPT_HEADER, false); | |
| curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); | |
| curl_setopt($ch, CURLOPT_URL, $url); | |
| curl_setopt($ch, CURLOPT_REFERER, $url); | |
| curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); | |
| $result = curl_exec($ch); |
| Sub SaveSheets() | |
| Dim s As Worksheet | |
| Dim wb As Workbook | |
| Set wb = ActiveWorkbook | |
| For Each s In wb.Worksheets | |
| s.Copy | |
| ActiveWorkbook.SaveAs Filename:=wb.Path & "\" & s.Name, FileFormat:=xlExcel8 | |
| Next | |
| End Sub |
| import shutil | |
| import os | |
| import datetime | |
| from winreg import * | |
| with OpenKey(HKEY_CURRENT_USER, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders') as key: | |
| Downloads = QueryValueEx(key, '{374DE290-123F-4565-9164-39C4925E467B}')[0] | |
| main_folder = Downloads + "\\" | |
| now = datetime.datetime.now() |
| tail -f file | sed 's/\\n/\n/g' |
wget http://ppa.launchpad.net/dajhorn/dante/ubuntu/pool/main/d/dante/dante-server_1.4.1-1_amd64.deb
sudo apt-get install gdebi-core
sudo gdebi dante-server_1.4.1-1_amd64.deb
/etc/danted.conf
logoutput: stderr
internal: eth0 port = 1080