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
using System; | |
namespace FiguringOutRatios | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Console.WriteLine("What width do you wanna use?"); |
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
// Ensure you select the table for the grid in the element view on Chrome | |
var rowList = $($0).find('tr'); | |
var elementList = "Id,Name\r\n"; | |
$(rowList).each(function(i, el){ | |
var thisRow = $(el); | |
elementList = elementList + thisRow.data('id') + ',' + thisRow.find('.list__item-title').html() + "\r\n"; | |
}); | |
console.log(elementList); |
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
#parent { | |
height: {height of container}; | |
} | |
#child { | |
top: 50%; | |
margin-top: {50% of height of child}; | |
height: {height of child}; | |
} |
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
.twitter-typeahead .tt-query, | |
.twitter-typeahead .tt-hint { | |
margin-bottom: 0; | |
} | |
.tt-hint { | |
display: block; | |
width: 100%; | |
height: 38px; | |
padding: 8px 12px; |
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
.countdown-container { | |
background-image: url(''); | |
background-size: cover; | |
background-repeat: no-repeat; | |
margin: 20px 0px; | |
background-position: center; | |
} | |
.countdown-container > #clockdiv .days, | |
.countdown-container > #clockdiv .hours, |
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
@media (max-width:1199px){ /* col-lg */ | |
} | |
@media (max-width:991px){ /* col-md */ | |
} | |
@media (max-width:767px){ /* col-sm */ | |
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-header > .file-actions > button').forEach(function(element){element.click()}) |
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
public static class CheckDynamicUmbracoProperties<T> | |
{ | |
public static T SelectFirstPropertyValueOfGivenAlias(IPublishedContent ChildPage, string PropertyTypeAlias) | |
{ | |
var query = ((Dictionary<string, IPublishedProperty> | |
.ValueCollection)ChildPage.Properties) | |
.Where(x => x.PropertyTypeAlias == PropertyTypeAlias) | |
.Select(x => x.Value).Cast<T>() | |
.FirstOrDefault(); |
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
using(SqlConnection conn = new SqlConnection(connString)) | |
using(SqlCommand command = new SqlCommand(query, conn)) | |
using (SqlDataAdapter dataAdapter = new SqlDataAdapter(command)) | |
dataAdapter.Fill(results); | |
using (SqlConnection conn = new SqlConnection(connString)) | |
{ | |
conn.open(); | |
using (SqlCommand command = new SqlCommand(query, conn)) |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta content="IE=edge,chrome=1' http-equiv='X-UA-Compatible"> | |
<meta content="width=device-width, initial-scale=1.0" name="viewport"> | |
<title></title> | |
<!--css here--> | |
<!--<link rel="stylesheet" type="text/css" href="/css/style.css">--> | |
</head> |