This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <keyword db=post;number=10;sort=crdate DESC> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <link href="http://www.downes.ca/cgi-bin/api.cgi" rel="webmention" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ------- Remote Comment ---------------------------------------------------- | |
| sub rcomment { | |
| &record_sanitize_input($vars); | |
| while (my ($vkey,$vval) = each %$vars) { | |
| $vars->{$vkey} =~ s/\0/,/g; # Replace 'multi' delimiter with comma | |
| } | |
| die "Not allowwed to comment" unless (&is_allowed("create",$table)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE HTML> | |
| <html lang="en-US"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Remote Comment Example</title> | |
| <link href="http://www.mooc.ca/cgi-bin/api.cgi" rel="webmention" /> | |
| </head> | |
| <body> | |
| <h1>Blog Post</h1> | |
| <p>Here is the text of my blog post. Don't you juyst want to comment?</p> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <link href="http://www.mooc.ca/cgi-bin/api.cgi" rel="webmention" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pragma solidity >=0.4.22 <0.6.0; | |
| contract Ballot { | |
| struct Voter { | |
| uint weight; | |
| bool voted; | |
| uint8 vote; | |
| address delegate; | |
| } | |
| struct Proposal { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| console.log("---> Running"); | |
| const curl = require("curl"); | |
| const jsdom = require("jsdom"); | |
| const url = "http://www.imdb.com/list/ls004489992/"; | |
| curl.get(url, null, (err,resp,body)=>{ | |
| if(resp.statusCode == 200){ | |
| console.log("Received data") | |
| parseData(body); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var req = request("http://rss.cnn.com/rss/edition.rss") | |
| req.on('response', function(res){ | |
| stream.pipe(feedparser) | |
| }) | |
| feedparser.on('error',function(error){ | |
| console.log('error in parsing') | |
| }) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <webview id="main-webview" src="http://finance.yahoo.com" style="width:500px;height:600px"> | |
| <div class="wait-message"></div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // console.log('testing') | |
| const{app,BrowserWindow, Menu} = require('electron') | |
| const ipc = require('electron').ipcMain | |
| // main process | |
| const path = require('path') | |
| const url = require('url') | |
| require('electron-reload')(__dirname) | |
| let win |