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 toString( rows ) { | |
| return rows | |
| .map( row => row | |
| .map( cell => cell.value ? '1' : '0' ) | |
| .join( ' ' ) | |
| ).join("\n") | |
| } | |
| class Game { |
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
| curl --header "Authorization: bearer <your-github-api-token-here>" https://api.github.com/graphql \ | |
| -d '{"query":"query { viewer { login } }"}' |
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
| # solution to the Frietkot problem https://people.cs.kuleuven.be/~tias.guns/frietkot/ using pysat | |
| from pysat.solvers import Solver | |
| MAYONNAISE = 1 | |
| KETCHUP = 2 | |
| CURRY = 3 | |
| ANDALOUSE = 4 | |
| SAMURAI = 5 | |
OlderNewer