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
| void A(int n, int** a, int** b, int** c){ | |
| parallel_for(0, n, [&](int k) | |
| { | |
| for (int i = 0; i<n; i++) { | |
| int r = a[i][k]; | |
| for (int j = 0; j<n; j++) | |
| c[i][j] += r * b[k][j]; | |
| } | |
| }); | |
| }; |
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 BASE = 256, | |
| PRIME = 256199087; | |
| function tonum(c){ | |
| return c.charCodeAt(0); | |
| } | |
| function mod(a, p, m){ | |
| if (p == 0) return 1; |
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> | |
| <body> | |
| <style> | |
| body { | |
| padding: 50px; | |
| } | |
| #bar-container { | |
| margin-top: 10px; |
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
| export CLICOLOR=1 | |
| export LSCOLORS=ExFxCxDxBxegedabagacad | |
| alias rm='rm -v -i' | |
| alias mv='mv -v' | |
| alias 'cp=cp -i' | |
| alias 'mv=mv -i' | |
| alias 'ls=ls -G' | |
| alias 'll=ls -l -G' | |
| alias atom='nohup ~/Applications/Atom.app/Contents/MacOS/Atom 2>/dev/null 1>/dev/null &' |
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
| package main | |
| import ( | |
| "fmt" | |
| "time" | |
| emitter "github.com/emitter-io/go" | |
| ) | |
| // demo license: zT83oDV0DWY5_JysbSTPTDr8KB0AAAAAAAAAAAAAAAI |
OlderNewer