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; | |
using System.Diagnostics; | |
// Solving Fibonacci series with Dynamic | |
// Programming algorithms using C# | |
public class Program | |
{ | |
public static void Main() | |
{ | |
Console.WriteLine("Solving Fibonacci Series with Dynamic Programming in C#"); |
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
<html> | |
<!-- With a bit of help from Youtube API Docs --> | |
<!–– https://developers.google.com/youtube/iframe_api_reference#Examples ––> | |
<head></head> | |
<body> | |
<p id="statusText">loading...</p> | |
<iframe id="existing-iframe-example" width="640" height="360" src="https://www.youtube.com/embed/M7lc1UVf-VE?enablejsapi=1" frameborder="0" style="border: solid 4px #37474f;"></iframe> |
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
iOS: | |
// override HTTPS Certificate Verification iOS | |
// In AppDelegate.cs | |
var iosClientHandler = new NSUrlSessionHandler(); | |
iosClientHandler.TrustOverride += (sender, trust) => | |
{ | |
return true; |
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
/// <summary> | |
/// Submit Form data to your Google Form | |
/// </summary> | |
/// <param name="yourGoogleFormsUrl"> | |
/// Link to your Google Form page | |
/// </param> | |
/// <param name="formData"> | |
/// Form data dictionary to submit | |
/// TKey: FieldSubmissionId - TValue: Value | |
/// </param> |
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 HtmlAgilityPack; | |
// using Newtonsoft.Json.Linq; | |
/// <summary> | |
/// Loading Google Form's generic information | |
/// and Question Field list data including | |
/// Question Type, Answer Options, Submission Id, etc | |
/// </summary> | |
/// <param name="yourGoogleFormsUrl"></param> | |
/// <returns></returns> |
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
/// <summary> | |
/// A model representing a Google Form structure | |
/// consist of main the properties of a Google Form | |
/// </summary> | |
public class GoogleForm | |
{ | |
/// <summary> | |
/// Document Name of your Google Form | |
/// </summary> | |
public string FormDocName { get; set; } |
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.Collections.Generic; | |
/// <summary> | |
/// A Question Field in a Google Form | |
/// </summary> | |
public class GoogleFormField | |
{ | |
/// <summary> | |
/// Type of the Question Field | |
/// </summary> |
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 HtmlAgilityPack; | |
// using Newtonsoft.Json.Linq; | |
private static async Task ScrapeOffFormSkeletonFromGoogleFormsAsync(string yourGoogleFormsUrl) | |
{ | |
HtmlWeb web = new HtmlWeb(); | |
var htmlDoc = await web.LoadFromWebAsync(yourGoogleFormsUrl); | |
var htmlNodes = htmlDoc.DocumentNode.SelectNodes("//script").Where( | |
x => x.GetAttributeValue("type", "").Equals("text/javascript") && |
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.ComponentModel; | |
/// <summary> | |
/// Found the Field type representation values with trial | |
/// and error try out of blood sweat and tears lol! ;) | |
/// </summary> | |
public enum GoogleFormsFieldTypeEnum | |
{ | |
[Description("Short Answer Field")] | |
ShortAnswerField = 0, |
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
:: Generate a Video Slideshow from images in a folder on Windows | |
:: that's optimized for current system's screen resolution | |
:: Make sure your Images, ffmpeg executables, and this batch file are in the same folder | |
:: The images should be ".jpg" format, or you may change in the script below | |
:: Make sure to download ffmpeg: https://www.ffmpeg.org/download.html | |
:: Command Line executable code | |
:: Begin by getting the framerate. ex: 1/2 | |
:: This determines time span for each image to display | |
:: And load the images in the current directory |
NewerOlder