Skip to content

Instantly share code, notes, and snippets.

View JewettCitySoftwareCorporation's full-sized avatar

[email protected] JewettCitySoftwareCorporation

View GitHub Profile
@JewettCitySoftwareCorporation
JewettCitySoftwareCorporation / asp_get_base_url.cs
Created October 26, 2020 07:29 — forked from kmlprtsng/asp_get_base_url.cs
Get Base URL or a part of URL
//*************** Solution 1 **************/
// http://forums.asp.net/t/1466607.aspx/1
//http://forums.asp.net/t/1383898.aspx
//would return http://localhost:2013 or http://localhost:2013/ApplicationPath
return string.Format("{0}://{1}{2}",
HttpContext.Current.Request.Url.Scheme,
HttpContext.Current.Request.ServerVariables["HTTP_HOST"],
@JewettCitySoftwareCorporation
JewettCitySoftwareCorporation / buildFeedCard.js
Created September 9, 2020 07:47 — forked from knanne/buildFeedCard.js
JS Function to transform RSS feed into Bootstrap 4 Card
/*
* code to transform list of RSS feeds into bootstrap cards
* view my tutorial at https://knanne.github.io/posts/how-to-create-a-custom-rss-reader
* 1 DEPENDENCY - YQL: https://developer.yahoo.com/yql/
* Adhere to Google News GUIDELINES as standard for parsing RSS feeds
* (e.g. link to source, site author etc.)
* https://support.google.com/news/publisher/answer/4203?hl=en
*/
// make YQL query as url string
@JewettCitySoftwareCorporation
JewettCitySoftwareCorporation / README.md
Created February 25, 2018 06:21 — forked from hofmannsven/README.md
My simply Git Cheatsheet
//
// Regular Expression for URL validation
//
// Author: Diego Perini
// Updated: 2010/12/05
// License: MIT
//
// Copyright (c) 2010-2013 Diego Perini (http://www.iport.it)
//
// Permission is hereby granted, free of charge, to any person