Skip to content

Instantly share code, notes, and snippets.

View xDaevax's full-sized avatar
🎯
Focusing

David Kyle xDaevax

🎯
Focusing
View GitHub Profile

--|Steak Recipe|--

Overall, the most important step is what meat you buy. Even if you skip the rest of this recipe, remember that it all starts with the cut you buy. Buying a cheap steak is like buying a house that is a fixer upper: it's a triumph of spirit if you get it done, but it's a lot of effort and you will have scars. Much better then, to buy the house that's good from the start and make improvements.

Food Grades:

From a grocery store, you'll have essentially three grade choices (according to the USDA):

  • Select (the Chevy Cobalt of beef grades) <-- Cheapest, could be $2-$5 / lb. (or less).
  • Choice (the Cadillac of beef grades) <-- The minimum grade to be labelled: angus. Middle-of-the-road, could be $5-$12 / lb.
  • Prime (The Ferrari of beef grades) <-- This is what you want. Note that beef labelled " Del-Monico" tends to be prime or better. It just means "best we have". Ranges from $12-$25 / lb. (anything above $20 is pricey)
  • Wagyu (You won't find this at the s
@xDaevax
xDaevax / File_IO.linq
Created May 4, 2020 16:34
File IO examples
void Main() {
var outputFilesPath = Path.Combine(LINQPad.Util.MyQueriesFolder, @"myFiles\output");
// Writing an image from a base-64 encoded string
//NOTE: Picture of cat
var imageData = "/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAUDBAgICAgICAgICAgICAkJCQgICAkJCQoJCQkHCQkJCQkJChALCQkaCQgHGCEYGhERHx8fBxcgICESIBASHxIBBQUFCAcIDQkJDRINDQ0SEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISHhIeEv/AABEIAWgB4AMBIgACEQEDEQH/xAAdAAABBAMBAQAAAAAAAAAAAAAAAgMEBQEGBwgJ/8QARhAAAQMCBAMGAggEBQMDBAMAAQACEQMhBBIxQQVRYQYTInGBkTKhBxRCUrHB0fAjYuHxFTNygpIIQ6IWU7IkY3ODNJPC/8QAGgEAAwEBAQEAAAAAAAAAAAAAAAECAwQFBv/EAC0RAAICAQMCBgICAgMBAAAAAAABAhEDBBIhMaETFBVBYuFRUiJhBYEyQnGR/9oADAMBAAIRAxEAPwDxkhCEACEIQAIQhAAhCEACEIQAIQhAAhCEACEIQAIQhAAhCEACEIQAIQhAAhCEACEIQAIQhAAhCEACEIQAIQhAAhCEACEIQAIQhAAhCEACEIQAIQhAAhCEACEIQAIQhAAhCEACEIQAIQhAAhZhEIHRhCzCIQKjCFmEQgDCELKAMIWYRCAMIWYRCAMIWYRCAMIWYRCAMIWYRCAMIWYRCAMIWYRCAMIQhAAhCEACEIQAIQhAAhCEACEIQAIQhAAhCEACEIQAIQhAAhCEACEIQAIQhAAhCEACEIQAIQswgDCEIQAIWYWEACEIQB6IxfaWiCR3jfcch1
@xDaevax
xDaevax / Engine\Environment.java
Created August 5, 2016 20:42
Java Game Example (Code-Review Question: 137930)
//
// Translated by CS2J (http://www.cs2j.com): 8/5/2016 4:24:38 PM
//
package Game.Engine;
import CS2JNet.JavaSupport.util.ListSupport;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
@xDaevax
xDaevax / Form.php
Last active September 20, 2015 03:09
PHP Form Submission Example for Steve
<?php
class FormProcessor {
private $_pagePosted; // Boolean: stores a value that indicates whether or not the user submitted the form.
private $_hasError; // Boolean: If the page has been posted back, whether or not the form contained errors.
private $_messages; // Strings: Contains validation error messages (if any)
private $_debug; // Boolean: controls debug output to aid in development.
function __construct() { // Constructor that is called when: "$x = new FormProcessor" is called.
$this->_debug = true; // set this to false to get rid of unwanted output
@xDaevax
xDaevax / App_Start\RouteConfig.cs
Last active September 9, 2015 18:22
Stack Overflow Membership MVC Example
using System.Web.Mvc;
using System.Web.Routing;
namespace AuthDemo {
public class RouteConfig {
public static void RegisterRoutes(RouteCollection routes) {
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(name: "logon", url: "logon", defaults: new { controller = "Login", action = "Logon" });
routes.MapRoute(
name: "Default",
@xDaevax
xDaevax / Controllers\HomeController.cs
Created September 10, 2014 19:12
Generic List ModelBinding
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Diagnostics;
namespace AjaxMvcTest.Controllers {
public class HomeController : Controller {
//
@xDaevax
xDaevax / Controllers\HomeController.cs
Last active August 29, 2015 14:06
Example Ajax MVC posting
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace AjaxMvcTest.Controllers {
public class HomeController : Controller {
//
// GET: /Home/