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
| <div class="example expose">Some content</div> | |
| <textarea class="expose">Some content</textarea><br /> | |
| <input type="text" class="expose" value="Some content" /><br /> | |
| <div class="example expose">Some content</div><br /><br /> | |
| <textarea class="expose">Some content</textarea> | |
| <div id="overlay"></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
| var DeepstreamServer = require( 'deepstream.io' ); | |
| var server = new DeepstreamServer(); | |
| var C = server.constants; | |
| var users = { | |
| 'mike': { canEditUser: true }, | |
| 'lisa': { canEditUser: false } | |
| }; | |
| var rpcs = { | |
| 'set-user-data': 'canEditUser' | |
| }; |
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
| function drawline(ax, ay, bx, by) { | |
| console.log('ax: ' + ax); | |
| console.log('ay: ' + ay); | |
| console.log('bx: ' + bx); | |
| console.log('by: ' + by); | |
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
| program_unit "程序" | |
| = desc_unit+ | |
| desc_unit "描述单元" | |
| = param:desc_unit_primitive+";" | |
| { |
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
| /*\从PAWN虚拟机原码中提取的 KeeLoq 算法: | |
| * Corrected KeeLoq Encryption and Decryption functions by Ruptor. | |
| * Use at your own risk! This source is not copyrighted. | |
| * Encoder encrypts an all-0 block, decoder decrypts it. | |
| * KeeLoq cipher encrypts 32-bit blocks with 64-bit keys. | |
| * Key is XORed with a 32-bit IV incremented on each use. | |
| * See http://www.keeloq.boom.ru/decryption.pdf for more details. | |
| * KeeLoq algorithm itself is not patented. | |
| \*/ | |
| #include "amx.h" |
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
| /* | |
| 使用 localStorage 来记录 JWT 认证,以及如何设置 Authorization 头部: | |
| http://stackoverflow.com/questions/35861012/how-to-send-a-token-with-an-ajax-request-from-jquery | |
| */ | |
| $.ajax({ |
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
| <html> | |
| <head> | |
| <title>ucast.io</title> | |
| <style> | |
| .ness { | |
| position: absolute; | |
| top: 50%; | |
| left: 50%; | |
| font-size: 200%; | |
| transform: translateX(-50%) translateY(-50%); |
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
| // example using the raf module from npm. try changing some values! | |
| var requestAnimationFrame = require("raf") | |
| var canvas = document.createElement("canvas") | |
| canvas.width = 500 | |
| canvas.height = 500 | |
| document.body.appendChild(canvas) | |
| var context = canvas.getContext("2d") |
NewerOlder