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
| PREFIX dbpedia-owl:<http://dbpedia.org/ontology/> | |
| PREFIX dbpedia-ja: <http://ja.dbpedia.org/resource/> | |
| select distinct ?title where { | |
| ?single dbpedia-owl:artist dbpedia-ja:Perfume. | |
| ?single dbpedia-owl:wikiPageWikiLink dbpedia-ja:シングル. | |
| ?single dbpedia-owl:title ?title. | |
| } |
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 frac = function(bunshi, bunbo){ | |
| var bunsu = { | |
| bunshi: bunshi, | |
| bunbo: bunbo | |
| }; | |
| return bunsu; | |
| }; |
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 add = function(a, b){ | |
| var bunshi; | |
| var bunbo; | |
| if(Number.isInteger(b)){ | |
| b = frac(b, 1); | |
| } | |
| if(a.bunbo != b.bunbo){ | |
| bunshi = a.bunshi * b.bunbo + b.bunshi * a.bunbo; |
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 n = 13; | |
| var message = ""; | |
| var counter = 0; | |
| while(counter < n){ | |
| message = message + "SFC "; | |
| counter = counter + 1; | |
| } | |
| console.log(message); |
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 nSFC = function(n){ | |
| var message = ""; | |
| var counter = 0; | |
| while(counter < n){ | |
| message = message + "SFC "; | |
| counter = counter + 1; | |
| } | |
| return message; | |
| }; |
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 nSFC = function(n){ | |
| var message = ""; | |
| var counter = 0; | |
| while(counter < n){ | |
| message = message + "SFC "; | |
| counter = counter + 1; | |
| } | |
| return message; | |
| }; |
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 nSFC = function(n){ | |
| var message = ""; | |
| var counter = 0; | |
| while(counter < n){ | |
| message = message + "SFC "; | |
| counter = counter + 1; | |
| } | |
| return message; | |
| }; |
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 nSFC = function(n){ | |
| var message = ""; | |
| var counter = 0; | |
| while(counter < n){ | |
| message = message + "SFC "; | |
| counter = counter + 1; | |
| } | |
| return message; | |
| }; |
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 createNumber = function(n){ | |
| var tmp = Math.random() * n; | |
| var result = Math.floor(tmp); | |
| return result; | |
| }; | |
| createNumber(100); |
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 createSpacer = function(n, numberOfRows){ | |
| var spacer = ""; | |
| var i = 0; | |
| var diff = numberOfRows - n; | |
| while(i < diff){ | |
| spacer = spacer + " "; | |
| i = i + 1; | |
| } | |
| return spacer; | |
| }; |