This file contains 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 userChoice = prompt("Do you choose rock, paper or scissors?"); | |
var computerChoice = Math.random(); | |
if (computerChoice < 0.34) { | |
computerChoice = "rock"; | |
} else if(computerChoice <= 0.67) { | |
computerChoice = "paper"; | |
} else { | |
computerChoice = "scissors"; | |
} console.log("Computer: " + computerChoice); |
This file contains 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 totthree=0; | |
var totfive=0; | |
var a = 3983; | |
var dtotal=0; | |
for (var b=3; b<990; b++) { | |
if (b%3===0) { |
This file contains 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> | |
#include <string> | |
int main() | |
{ | |
std::string name; | |
for (int row=1; row<=6;row++) { | |
for (int hash=1; hash<=4-abs(4-row);hash++) { // | |
std::cout<< "#"; |
This file contains 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
[{ | |
songName: "Make you feel", | |
length: "3:40", | |
artist: "Alina Baraz", | |
album: "Urban Flora", | |
genre: "Electronic" | |
}, |
This file contains 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
Sub Gadget() | |
' | |
' Gadget Macro | |
' Placement-Creative Assignment Template Aid | |
' | |
' Keyboard Shortcut: Ctrl+g | |
' | |
Range("A:J").Select | |
Selection.AutoFilter |
This file contains 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 com.onresolve.jira.groovy.canned.workflow.postfunctions | |
import com.atlassian.jira.ComponentManager | |
import com.atlassian.jira.issue.Issue | |
import com.atlassian.jira.util.ErrorCollection | |
import com.onresolve.jira.groovy.canned.CannedScript | |
import com.onresolve.jira.groovy.canned.utils.CannedScriptUtils |
This file contains 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
// file name "search.php" | |
<?php | |
remove_action( 'genesis_loop', 'genesis_do_loop' ); | |
add_action( 'genesis_loop', 'sk_do_search_loop' ); | |
/** | |
* Outputs a custom loop | |
* |
This file contains 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
Sub wewillsee() | |
' | |
' wewillsee Macro | |
' | |
' | |
ActiveWindow.ScrollColumn = 2 | |
ActiveWindow.ScrollColumn = 3 |
This file contains 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 GetFilenameFromPath(ByVal strPath As String) As String | |
If Right$(strPath, 1) <> "\" And Len(strPath) > 0 Then | |
GetFilenameFromPath = GetFilenameFromPath(Left$(strPath, Len(strPath) - 1)) + Right$(strPath, 1) | |
End If | |
End Function | |
Function isOpen(ByVal strPath As String) | |
Dim wBook As Workbook | |
On Error Resume Next | |
Set wBook = Workbooks(strPath) |
This file contains 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
Sub getPrismaID_1() | |
Dim sourceWB As Workbook | |
Set sourceWB = ActiveWorkbook | |
Dim sourceWS As Worksheet | |
Set sourceWS = sourceWB.Sheets("Creative Direction | Media Plan") | |
'Innovid Bried Range |
OlderNewer