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
* 2D games - Atari | |
* | |
Interesting projects | |
Pure CSS RPG (https://codepen.io/medrupaloscil/pen/arvzBG) |
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
FFMPEG is used to reduce size of videos and compress | |
To reduce size | |
• ffmpeg -i .\inputvideo.mp4 -vcodec libx265 -crf 28 outputvideo.mp4 | |
To compress audio | |
• ffmpeg -i .\2.mp4 -filter_complex "[0]dynaudnorm[a]" -map 0:v -map "[a]" -map 0:a -c:v copy -c:a:1 copy 3.mp4 |
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 Newtonsoft.Json; | |
public static class JsonConvertHelper | |
{ | |
public static bool TryParseJson<T>(this string @this, out T result) | |
{ | |
bool success = true; | |
var settings = new JsonSerializerSettings | |
{ | |
Error = (sender, args) => { success = false; args.ErrorContext.Handled = 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
@using MyWebAPjQuery.WebAPI.Controllers | |
<div class="jumbotron"> | |
<h1>ASP.NET jQuery to Web API AJAX call</h1> | |
<p class="lead">This sentence has a class that denotes it as a lead phrase.</p> | |
</div> | |
<div class="row"> | |
<div class="col-md-4"> | |
<h2>My MVC API AJAX Call</h2> | |
<form id="form1"> | |
Name :- <input type="text" name="name" id="name" value="Chris" /> |
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
$conn = New-Object System.Data.SqlClient.SqlConnection | |
$conn.ConnectionString = "Server=(local);Database=Sample;Integrated Security=True;" | |
$conn.Open() | |
$conn.Close() |
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
$conn = New-Object System.Data.SqlClient.SqlConnection | |
$conn.ConnectionString = "Server=(local)\SQLEXPRESS;Database=SampleDatabase;Integrated Security=True;" | |
$conn.Open() | |
$conn.Close() |
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
int X; | |
String Result = Console.ReadLine(); | |
while(!Int32.TryParse(Result, out X)) | |
{ | |
Console.WriteLine("Not a valid number, try again."); | |
Result = Console.ReadLine(); | |
} |
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 void GetMethodsUsingReflection() | |
{ | |
MethodInfo[] methodInfos = typeof(Student).GetMethods(); | |
foreach (MethodInfo methodInfo in methodInfos) | |
{ | |
Response.Write(Environment.NewLine + methodInfo.Name); | |
} | |
} |
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
[SetUp] | |
public void SetUp() | |
{ | |
_MockRepository = new MockRepository(MockBehavior.Strict); | |
_MockLogger = _MockRepository.Create<ILogger<TagController>>(); | |
_MockTagManager = _MockRepository.Create<ITagManager>(); | |
_MockApplicationConfigManager = _MockRepository.Create<IApplicationConfigManager>(); | |
} |
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
function detach(element) { | |
return element.parentElement.removeChild(element); | |
} | |
function move(src, dest, isBefore) { | |
dest.insertAdjacentElement(isBefore ? 'beforebegin' : 'afterend', detach(src)); | |
} | |
function children(element, selector) { | |
return element.querySelectorAll(selector); |
NewerOlder