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
# HELM CHART VALUES | |
Master: | |
ServiceType: ClusterIP | |
Image: "roiupagency/jenkins" | |
ImagePullPolicy: "Always" | |
ImageTag: "latest" | |
NumExecutors: 1 | |
Agent: | |
Privileged: true |
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
# install wine 1.7 | |
add-apt-repository ppa:ubuntu-wine/ppa | |
sudo apt-get update | |
sudo apt-get install wine1.7 | |
# download steam | |
curl -o ~/Downloads/SteamSetup.exe http://media.steampowered.com/client/installer/SteamSetup.exe | |
# install some tricks | |
winetricks vcrun2010 |
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
function rot13(str) { // LBH QVQ VG! | |
str.toUpperCase(); | |
var decryptedChar=""; | |
var decryptedCode=0; | |
var resultString=""; | |
for(var i = 0; i < str.length ; i++){ | |
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
function mutation(arr) { | |
// Example | |
var letter1 = arr[0].split(''); | |
var letter2 = arr[1].split(''); | |
var test ; | |
for (var k = 0; k < letter2.length ; k++){ |
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 newString; | |
if(str.length > num){ | |
newString = str.slice(0,num-3) + "..."; | |
return newString; | |
}else if(str.length === num || num > str.length){ | |
return str; | |
}else if( num <= 3){ |
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 result; | |
for ( var i = 0 ; i < contacts.length; i++){ | |
if(contacts[i].hasOwnProperty(firstName)){ | |
if(contacts[i].hasOwnProperty(prop)){ | |
result = contacts[i].prop; | |
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
// Gist for the FreeCodeCamp Profile Lookup Challenge. Instructions as comments. Total: 39 lines. | |
// We have an array of objects representing different people in our contacts lists. | |
// Example: var contacts = [ { ... } , { ... } , { ... } , { ... } ]; | |
// A lookUpProfile function that takes | |
// firstName and a property (prop) | |
// as parameters has been pre-written for you. | |
function lookUpProfile(firstName, prop){ | |
// The function should check if firstName is an actual contact's firstName | |
// and the given property (prop) is a property key of that contact. |