puts 'The best way to log and share programmers knowledge.'puts 'The best way to log and share programmers knowledge.'
また、コードをインライン表示することも可能です。
これは CSS Programming Advent Calendar 2012 の 7 日目の記事です。
CSS プログラミングの基本は、「ユーザの操作をなんとかして受け取ってスタイルをあてる」ということの繰り返しです。
クリックの検出に :checked や :active, mouseover なら :hover を使う……とやるわけですね。
ならば次は「ドラッグ」も検出したいところです。
| (function(module) { | |
| "use strict"; | |
| // Scope stacks | |
| var LAZY_ID = 0, | |
| PARALLELS = []; | |
| // exports | |
| module.Lazy = Lazy; |
| 'use strict' | |
| var DEFINE_NOT_WRITABLE = {writable: false}; | |
| /** | |
| * Base Class of OOP feature | |
| * | |
| // e.g 1 | |
| var Klass = klass.of({ | |
| constructor: function() { |
| (function(){ //make __dirname, __filename work in the browser | |
| if(window && !window['__dirname']){ | |
| var stackTrace = function () { | |
| var lines = (new Error()).stack.split("\n"); | |
| // 0 = message, 1 = stackTrace | |
| lines.shift(); lines.shift(); | |
| var result = lines.map(function(line){ | |
| if(line.indexOf('(native)') != -1){ | |
| return { |
| diff -ru asterisk-13.2.0-orig/apps/Makefile asterisk-13.2.0-patched/apps/Makefile | |
| --- asterisk-13.2.0-orig/apps/Makefile 2013-04-15 18:43:47.000000000 +0200 | |
| +++ asterisk-13.2.0-patched/apps/Makefile 2015-03-24 03:28:53.684406200 +0100 | |
| @@ -34,6 +34,6 @@ | |
| $(subst .c,.o,$(wildcard confbridge/*.c)): _ASTCFLAGS+=$(call MOD_ASTCFLAGS,app_confbridge) | |
| ifneq ($(findstring $(OSARCH), mingw32 cygwin ),) | |
| - LIBS+= -lres_features.so -lres_ael_share.so -lres_monitor.so -lres_speech.so | |
| + LIBS+= -lres_stasis.so -lres_ael_share.so -lres_monitor.so -lres_speech.so | |
| LIBS+= -lres_smdi.so |
| //------- | |
| // cache | |
| define('ZIP_USE', !DEBUG_MODE and !!ZIP_ENABLE and ('on' == config('zip_http'))); | |
| if ( 1 | |
| and !DEBUG_MODE | |
| and ('on' == config('cache')) | |
| and (!SID or (config('subscriber_cache') === 'on' and ACMS_RAM::userAuth(SUID) === 'subscriber' and !$Q->get('admin'))) | |
| and !(is_ajax() and config('ajax_nocache') === 'on' and $GetQuery->get('nocache') === 'yes') | |
| and !HTTPS | |
| and !ACMS_POST |
| #include <stdio.h> | |
| #include <windows.h> | |
| void hoge() | |
| { | |
| HWND hwnd = FindWindowW( L"Notepad", L"無題 - メモ帳"); | |
| if(!hwnd){ | |
| MessageBoxW(0, L"", L"メモ帳未起動!", MB_OK); | |
| _wsystem(L"c:\\windows\\system32\\notepad.exe"); |
| <head><title>highlighttest.aadl</title><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta name="generator" content="highlight-kate"><style type="text/css">div.sourceCode { overflow-x: auto; } | |
| table.sourceCode, tr.sourceCode, td.lineNumbers, td.sourceCode { | |
| margin: 0; padding: 0; vertical-align: baseline; border: none; } | |
| table.sourceCode { width: 100%; line-height: 100%; } | |
| td.lineNumbers { text-align: right; padding-right: 4px; padding-left: 4px; color: #aaaaaa; border-right: 1px solid #aaaaaa; } | |
| td.sourceCode { padding-left: 5px; } | |
| code > span.kw { color: #007020; font-weight: bold; } /* Keyword */ | |
| code > span.dt { color: #902000; } /* DataType */ | |
| code > span.dv { color: #40a070; } /* DecVal */ | |
| code > span.bn { color: #40a070; } /* BaseN */ |