Skip to content

Instantly share code, notes, and snippets.

View SterlingAr's full-sized avatar

Marius Bora SterlingAr

View GitHub Profile
# HELM CHART VALUES
Master:
ServiceType: ClusterIP
Image: "roiupagency/jenkins"
ImagePullPolicy: "Always"
ImageTag: "latest"
NumExecutors: 1
Agent:
Privileged: true
@SterlingAr
SterlingAr / install_steam
Created February 23, 2017 22:17 — forked from vespakoen/install_steam
install steam & age of empires 2 HD on ubuntu 14.04
# 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
function rot13(str) { // LBH QVQ VG!
str.toUpperCase();
var decryptedChar="";
var decryptedCode=0;
var resultString="";
for(var i = 0; i < str.length ; i++){
function mutation(arr) {
// Example
var letter1 = arr[0].split('');
var letter2 = arr[1].split('');
var test ;
for (var k = 0; k < letter2.length ; k++){
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){
var result;
for ( var i = 0 ; i < contacts.length; i++){
if(contacts[i].hasOwnProperty(firstName)){
if(contacts[i].hasOwnProperty(prop)){
result = contacts[i].prop;
// 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.