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
| static OSStatus | |
| SSLVerifySignedServerKeyExchange(SSLContext *ctx, bool isRsa, SSLBuffer signedParams, | |
| uint8_t *signature, UInt16 signatureLen) | |
| { | |
| OSStatus err; | |
| ... | |
| if ((err = SSLHashSHA1.update(&hashCtx, &serverRandom)) != 0) | |
| goto fail; | |
| if ((err = SSLHashSHA1.update(&hashCtx, &signedParams)) != 0) |
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
| {"pages": [ {"playerName": "Boris", | |
| "livesLeft": 1}, | |
| {"playerName": "Anna", | |
| "livesLeft": 1} ], | |
| "items": ["broadsword", "healingPotion", "mirrorShield"] | |
| "timestamp": 12593829349045 } | |
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
| getFormula <- function(checkboxOutput, variablesThatMustAppearInModel) { | |
| formula <- "testScores ~" | |
| variables1 <- paste(variablesThatMustAppearInModel, collapse = " + ") | |
| variables2 <- paste(checkboxOutput, collapse = " + ") | |
| fullCall <- paste(variables1, | |
| variables2, | |
| collapse = " + ", | |
| sep = " + ") | |
| return(paste(formula, | |
| fullCall)) |
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
| (define (clockpatience cards) | |
| (let ((hand (deal cards 'K))) | |
| (play (topcard 'K hand) 'K hand 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
| #!/bin/bash | |
| D=`date +%Y%m%d%H%M%S` | |
| branch=`git status|grep -ie 'on branch master'` | |
| if [ -z "$branch" ]; then | |
| cat DESCRIPTION | sed -e 's/^\(Version: [0-9]*\.[0-9]*\).*/\1.'$D'/' > DESCRIPTION.temp | |
| rm DESCRIPTION | |
| mv DESCRIPTION.temp DESCRIPTION | |
| git add DESCRIPTION |
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
| complement = {0: 1, | |
| 1: 0} # Maps 0 to 1 and vice versa | |
| newNumber = [] # Initialize an empty list as a new number | |
| def CantorDiagonal(MatrixOfAllNumbers, newNumber): | |
| for i in range(len(MatrixOfAllNumbers)): | |
| """ | |
| Remember, the length of the matrix is infinite, | |
| so this loop runs forever. It scans the diagonal |
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 transdownNamespace = { | |
| updatePreviewAfterEachKeypress : function () { | |
| $('#text-to-transdownify').keyup(this.renderTranscriptPreview); | |
| }, | |
| transdownify : function (text) { | |
| return (text); | |
| }, | |
| renderTranscriptPreview : function () { |
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
| (define (logicalToBinary listOfZeroesAndOnes powerOfTwo runningSum) | |
| (if (= (cdr listOfZeroesAndOnes) `()); Not sure if this is right, but it should be "if you've exhausted the list, | |
| ; implemented as "if the remainder of the list equals an empty list" | |
| ; http://stackoverflow.com/questions/9115703/null-value-in-mit-scheme | |
| runningSum) | |
| (else return (logicalToBinary (cdr listOfZeroesAndOnes) | |
| (+ powerOfTwo 1) | |
| (+ runningSum (* runningSum powerOfTwo))))) |
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 myDictionary = { | |
| rocket: 'Atlas V', | |
| spaceport: 'Cape Canaveral', | |
| astronauts: [ | |
| 'Brian', | |
| 'Wil' | |
| ] | |
| }; | |
| var getValueFromExternalDictionary = function (currentKey, indexOfCurrentKey) { |
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
| df <- | |
| df %>% | |
| select(col1 = str_split(oldcol2, ','), | |
| col2, | |
| col3 = paste0(oldcol1, 'amber')) %>% | |
| filter(col1 == "America" | col2 >= 55) %>% | |
| group_by(col1, col2) %>% | |
| summerize(count = n()) | |
| df <- |
OlderNewer