Skip to content

Instantly share code, notes, and snippets.

View gtaing1's full-sized avatar

Gigi Taing gtaing1

View GitHub Profile
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);
@gtaing1
gtaing1 / BarQ-1.js
Last active January 3, 2016 06:26 — forked from anonymous/BarQ-1.js
https://repl.it/BarQ/1 created by Gereltuya
var totthree=0;
var totfive=0;
var a = 3983;
var dtotal=0;
for (var b=3; b<990; b++) {
if (b%3===0) {
#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<< "#";
[{
songName: "Make you feel",
length: "3:40",
artist: "Alina Baraz",
album: "Urban Flora",
genre: "Electronic"
},
Sub Gadget()
'
' Gadget Macro
' Placement-Creative Assignment Template Aid
'
' Keyboard Shortcut: Ctrl+g
'
Range("A:J").Select
Selection.AutoFilter
@gtaing1
gtaing1 / TransitionLinkedIssues
Created April 19, 2016 22:44 — forked from utopius/TransitionLinkedIssues
JIRA Script Runner groovy post-function which transitions linked issues with the given link type to the given step.Still needs some improvement.Put into atlassian-jira\WEB-INF\classes\com\onresolve\jira\groovy\canned\workflow\postfunctionsTo update you may have to edit a workflow transition -> add postfunction -> select ResolveLinkedIssues. This…
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
// file name "search.php"
<?php
remove_action( 'genesis_loop', 'genesis_do_loop' );
add_action( 'genesis_loop', 'sk_do_search_loop' );
/**
* Outputs a custom loop
*
Sub wewillsee()
'
' wewillsee Macro
'
'
ActiveWindow.ScrollColumn = 2
ActiveWindow.ScrollColumn = 3
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)
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