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
| describe('app', function() { | |
| describe('initialize', function() { | |
| it('should bind deviceready', function() { | |
| runs(function() { | |
| spyOn(app, 'onDeviceReady'); | |
| app.initialize(); | |
| helper.trigger(window.document, 'deviceready'); | |
| }); | |
| waitsFor(function() { |
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
| #include <sys/types.h> | |
| #include <stdio.h> | |
| #include <dirent.h> | |
| #include <string.h> | |
| #include <malloc.h> | |
| int main(void) | |
| { | |
| DIR *dir = opendir("."); |
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> | |
| <script type="text/javascript"> | |
| function func() { | |
| var ret = document.getElementById("ret"); | |
| var src_path = document.convert_form.src.value; | |
| if (!src_path.match(/^\\\\*/)) { | |
| ret.innerHTML = "入力する文字列が違います。" | |
| return; | |
| } |
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
| #include <stdio.h> | |
| #include <string.h> | |
| #include <stdlib.h> | |
| /* | |
| only ASCII. | |
| */ | |
| int | |
| main(int argc, char **argv) |
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> | |
| <head> | |
| <meta charset="utf-8"> | |
| <script src="../dist/snap.svg.js"></script> | |
| </head> | |
| <body> | |
| <script> | |
| var s = Snap(600, 600); | |
| s.circle(150, 150, 100).attr({ |
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
| #!/bin/sh | |
| a=0 | |
| b=";" | |
| while [ $a -ne 3000 ] | |
| do | |
| echo $a$b >> test.txt | |
| a=`expr $a + 1` | |
| done | |
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> | |
| <style> | |
| .test:hover { | |
| outline: solid 4px #ff0000; | |
| outline-offset : -1px; | |
| } | |
| </style> | |
| </head> | |
| <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
| // ==UserScript== | |
| // @name followers | |
| // @match https://twitter.com/* | |
| // ==/UserScript== | |
| (function(){ | |
| var as = document.getElementsByTagName("a"); | |
| for (var i = 0; i < as.length; i++) { | |
| if (as[i].getAttribute("data-element-term") == "follower_stats") { | |
| as[i].firstChild.firstChild.nodeValue = "999999"; |
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
| <svg xmlns="http://www.w3.org/2000/svg" onload="func(evt)"> | |
| <script> | |
| function func(evt) { | |
| var ns = "http://www.w3.org/2000/svg"; | |
| var doc = evt.target.ownerDocument; | |
| var circle = doc.createElementNS(ns, 'circle'); | |
| circle.setAttributeNS(null, 'cx', '100'); | |
| circle.setAttributeNS(null, 'cy', '100'); | |
| circle.setAttributeNS(null, 'r', '50'); | |
| doc.documentElement.appendChild(circle); |
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> | |
| <script src="http://api.dmcdn.net/all.js"></script> | |
| <script type="text/javascript"> | |
| var videoArray = new Array(); | |
| var j = 0; | |
| window.dmAsyncInit = function() { | |
| DM.api('/videos', {search: "momoclo"}, function(response) { | |
| console.log(response.list[0]); |