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
| #standardSQL | |
| WITH | |
| a AS ( | |
| SELECT | |
| num | |
| FROM | |
| UNNEST(GENERATE_ARRAY(1, 6)) AS num), | |
| b AS ( | |
| SELECT | |
| num |
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
| #standardSQL | |
| WITH | |
| trials AS ( | |
| SELECT | |
| rand() AS x, | |
| rand() AS y | |
| FROM | |
| UNNEST(GENERATE_ARRAY(1, POW(2, 19)))), | |
| results AS ( | |
| SELECT |
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
| #!/usr/bin/env python | |
| # Invocation: | |
| # ./fixutf.py input_file.csv | |
| # | |
| # Outputs to | |
| # utf8-[input_file.csv] | |
| import sys |
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
| license: mit |
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
| const toCamelCase = text => { | |
| if (!text.length) return ''; | |
| const re = /\-(\w)/g; | |
| const match = re.exec(text); | |
| if (match) { | |
| return text.slice(0, match.index) + match[1].toUpperCase() + toCamelCase(text.slice(re.lastIndex)); | |
| } | |
| return text; | |
| }; |
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
| license: mit |
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 imgNodes = document.getElementsByClassName('speakerPic'); | |
| var list; | |
| for (var i = 0; i < imgNodes.length; i++) { | |
| list = list + imgNodes[i].getAttribute('src') + '\n'; | |
| } | |
| list.trim(); |
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
| JSON.stringify(Array.prototype.map.call(document.querySelectorAll('.navbox-inner a'), v => { | |
| return {anchor: v.firstChild.wholeText, href: v.href}; | |
| })); |