You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
This demonstrates turndown – an HTML to Markdown converter in JavaScript. Usage var turndownService = new TurndownService() console.log( turndownService.turndown('<h1>Hello world</h1>') ) It aims to be CommonMark compliant, and includes options to style the output. These options include: headingStyle (setext or atx) horizontalRule (*, -, or _) bullet (*, -, or +) codeBlockStyle (indent
ブックマークレット(bookmarklet)の追加方法は Chrome > 上部のブックマークを右クリック > ページを追加 > URLにjavascriptを書いて保存、の手順です。 使用方法は、作成したブックマークレットをクリックすると、そのページのリンクを生成して、クリップボードにコピーされます。 タイトルとURLからMarkdown用のリンク生成 Markdown用のリンクを生成するブックマークレットです。 名前:page title and url (md) URL: javascript:!function(){var e=document.createElement("textarea"),t=document.title.replace(/\[/g,"\\[").replace(/]/g,"\\]").replace(/\</g,'\\<').replace(/>/g,'\
If you follow me on Twitter, you know that I've been working on a super top secret mobile application using Appcelerator Titanium. The experience has been great: using JavaScript to create easy to write, easy to test, native mobile apps has been fun. My mobile app connects to numerous social network APIs, some of which only provide an XML response. My mini "framework" uses JSON to dynamically
(この記事はQiitaで僕が書いたものを移行した記事です。記事中のコメントはQiitaの該当記事を参照ください) ググっても出てこなかったのでドラマウロボロス聞きながら作りました。そのせいでif入り乱れのスパゲッティです。あしからず。 ※ヘボン式自体が不可逆圧縮のため一部の文字列はひらがな->ローマ字->ひらがなと変換しても元の文字列に完全には戻せません。 例 //SHORYAKU=falseの場合 hiraganaToRome("とうきょう");//tokyo hiraganaToRome("おおさか");//osaka hiraganaToRome("おおの");//ono romeToHiragana(hiraganaToRome("とうきょう"));//ときょ romeToHiragana(hiraganaToRome("おおさか"));//おさか romeToHiragana(h
pythonでimport文で指定したクラスを動的生成したい posted by jun-g at Tue, 03 Apr 2007 02:16 JST ここんとこずーっと悩んでて解決方法がわからんのでブログで晒してみる。 pythonでMochiKit.DOMのcreateDOMみたいのがあったら便利かなと思って下記のようなクラスを書いた。 class Tag: """A base class of HTML tag.""" name = None inline = True container = False def __init__(self, *nodes, **attributes): self.nodes = nodes self.attributes = attributes def __str__(self): return self.serialize() def ser
パブリックドメイン版 cflow には GNU cflow の -T, --tree * Draw ASCII art treeというオプションがないので、インデントで表された呼び出し構造(オフサイドルール?)をツリー形式に変換するコマンドを書いてみた。 #!/usr/bin/python import sys def getlevel(s): return len(s) - len(s.lstrip()) def parselist(lines): if len(lines) == 0: return [[], 0] tree = [] i = 0 currentlevel = getlevel(lines[0]) while i < len(lines): level = getlevel(lines[i]) if level > currentlevel: # Indent incr
※注意! このサービスは開発中のプレビュー版です。α以前の状態であり、テスト・検証も不十分です。今後も随時改修が入る可能性が高いです。 予期しない動作をする恐れがあります。このサービスの利用により万一不具合を被っても責任は取れません。 ご利用の際は以上の点をご了承の上、At your own riskでお願いします。 ※Sony ReaderでePubを使用する場合の注意 Sony Readerには日本語フォントがインストールされていないため、標準の状態では日本語を表示することができません。 このサービスで作成したePub形式のファイルでは、IPAモナーフォントを使用するよう指定されています。 Sony Readerで日本語を表示するには、以下の手順でIPAモナーフォントをインストールして下さい。 IPAモナーフォントをダウンロードし、解凍します (.tar.gzの解凍方法につい
人が作ったのを使って楽したかったんだけどいいのが無かったので、ひらがなをローマ字に変換するクラスを自作した。 タイピングゲーム製作でどうしても必要になる問題文章を、ひらがな(数字+一部記号も可)で作るだけで全部ローマ字に変換します。 ※mootools.1.2が必要 日本語は母音と子音の組み合わせで出来てる。 「く」ならK+U、「し」ならS+I/SH+I/C+I、「わ」ならW+A。 入力方式が変わるのは、「し」や「じ」等特定の文字と、「ん」、小文字のや行、小文字の「つ」との組み合わせの時だけで あとは特定の子音1種と母音5種類の組み合わせで成り立つ。 で、大体次のような流れで変換を行います。 パブリックメソッドに文章投入→「このぶんしょうはさんぷるっぽいなにかです!」 1文字または2文字単位に分割して配列化。小文字は前後の文字とセットにする。 →[こ,の,ぶ,ん,しょ,う,は,さ,ん,ぷ,
Acrobat SDK 2021¶ Welcome to the 2021 release of the Acrobat SDK. The downloads are new and the documentation is rapidly evolving. The Acrobat SDK provides tools that help you develop software that interacts with Acrobat technology. The SDK contains header files, type libraries, simple utilities, sample code, and documentation. These tools provide several methods for developing software that integ
(function(){ var fr = document.createElement('iframe'); fr.src = 'about:blank'; fr.style.display = 'none'; document.body.appendChild(fr); var d = fr.contentWindow.document; d.write('<html><head><base href="http://d.hatena.ne.jp/miya2000/20080120/p0"></head><body><a href="hoge.html"></a></body></html>'); d.close(); alert(d.body.firstChild.href); // ↓は Firefox 不可 d.getElementsByTagName('base')[0].hr
Products: vbs2js vbs2js - VBScript to JScript converter This is a tool that converts VBscripts to JScripts. It performs complete parsing of VBScript code and can even automatically substitute expressions like strcomp(a,b,1)=0 for a.toLowerCase()==b.toLowerCase() The output of the tool is not a ready-to-run JScript program but - rather - a template that gives developer a headstart in the co
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く