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
| mappings = { | |
| 'a':'a', | |
| 'i':'i', | |
| 'u':'u', | |
| 'e':'e', | |
| 'o':'o', | |
| 'ka':'ka', | |
| 'ki':'ki', | |
| 'ku':'ku', |
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
| cp -r apps/events/templates/129 apps/events/templates/131 | |
| mkdir -p static/bundles/131 | |
| cp -r static/bundles/129/* static/bundles/131/ | |
| mkdir -p static/images/events/131 | |
| cp -r static/images/events/129/* static/images/events/131/ | |
| mkdir -p static/src/js/events/131 | |
| cp -r static/src/js/events/129/* static/src/js/events/131/ |
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
| set -ex | |
| echo $(pwd) | |
| RUNNER_PATH=/home/runner | |
| RUNNER_ALLOW_RUNASROOT=1 | |
| mkdir ${RUNNER_PATH} | |
| cd ${RUNNER_PATH} | |
| echo $(pwd) | |
| echo $1 | |
| echo $2 | |
| # echo -e RUNNER_ALLOW_RUNASROOT=1\\nRUNNER_LABELS=cml,gpu\\nRUNNER_IDLE_TIMEOUT=72000\\nRUNNER_PATH\\nRUNNER_REPO=$1\\nrepo_token=$2\\n > /home/runner/.env |
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
| let crypto = require('crypto'); | |
| const salt = 'lone-star', | |
| iterations = 10000, | |
| len = 16, | |
| digest = 'sha512'; | |
| const REPEATS = 10; | |
| const NUMBER_COUNT = 10000000; |
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
| # Remove anything linked to nvidia | |
| sudo apt-get remove --purge nvidia* | |
| sudo apt-get autoremove | |
| # Search for your driver | |
| apt search nvidia | |
| # Select one driver (the last one is a decent choice) | |
| sudo apt install nvidia-370 |
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
| pragma solidity ^0.4.24; | |
| contract StandardToken { | |
| struct Task { | |
| string title; // weight is accumulated by delegation | |
| string description; // if true, that person already voted | |
| string expiryDate; | |
| uint timeLimit; | |
| uint totalLabeled; | |
| uint totalBacked; |
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
| pragma solidity ^0.4.10; | |
| interface ERC20 { | |
| function balanceOf(address who) public view returns (uint256); | |
| function transfer(address to, uint256 value) public returns (bool); | |
| function allowance(address owner, address spender) public view returns (uint256); | |
| function transferFrom(address from, address to, uint256 value) public returns (bool); | |
| function approve(address spender, uint256 value) public returns (bool); | |
| event Transfer(address indexed from, address indexed to, uint256 value); | |
| event Approval(address indexed owner, address indexed spender, uint256 value); |
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
| pragma solidity ^0.4.18; | |
| contract Coursetro{ | |
| string fName; | |
| uint age; | |
| function setInstructor(string _fName, uint _age) public { | |
| fName = _fName; | |
| age = _age; | |
| } |
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
| class Seq2SeqAttnRNN(nn.Module): | |
| def __init__(self, vecs_enc, itos_enc, em_sz_enc, vecs_dec, itos_dec, em_sz_dec, nh, out_sl, nl=2): | |
| super().__init__() | |
| self.emb_enc = create_emb(vecs_enc, itos_enc, em_sz_enc) | |
| self.nl,self.nh,self.out_sl = nl,nh,out_sl | |
| self.gru_enc = nn.GRU(em_sz_enc, nh, num_layers=nl, dropout=0.25) | |
| self.out_enc = nn.Linear(nh, em_sz_dec, bias=False) | |
| self.emb_dec = create_emb(vecs_dec, itos_dec, em_sz_dec) | |
| self.gru_dec = nn.GRU(em_sz_dec, em_sz_dec, num_layers=nl, dropout=0.1) | |
| self.emb_enc_drop = nn.Dropout(0.15) |
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 <iostream> | |
| using namespace std; | |
| int palindrome(string &str,int start,int end){ | |
| if(start >= end) | |
| return 1; | |
| if(str[start] != str[end]) | |
| return 0; | |
| return palindrome(str,++start,--end); |