A Pen by Andrew Mitchell Barfield on CodePen.
This file contains hidden or 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.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace StandardMethod | |
{ | |
class Program | |
{ |
This file contains hidden or 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.Collections.Generic; | |
using System.ComponentModel; | |
using System.Data; | |
using System.Drawing; | |
using System.Linq; | |
using System.Text; | |
using System.Windows.Forms; | |
using System.Threading; |
This file contains hidden or 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
private void B64Encode() | |
{ | |
Image a = new Bitmap( @".../path/to/image.png" ); | |
using ( MemoryStream ms = new MemoryStream() ) | |
{ | |
// Convert Image to byte[] | |
a.Save( ms, a.RawFormat ); | |
byte[] imageBytes = ms.ToArray(); |
This file contains hidden or 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.Collections.Generic; | |
using System.Text; | |
using Microsoft.Office.Interop.Excel; | |
using System.Runtime.InteropServices; | |
namespace ExcelTest | |
{ | |
class Program |
This file contains hidden or 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 ProductInfo | |
{ | |
public static string GetName() | |
{ | |
string name = ""; | |
Assembly assembly = null; | |
try | |
{ | |
assembly = System.Reflection.Assembly.GetExecutingAssembly(); |
This file contains hidden or 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
Ext.namespace('COMPANYNAME.data'); | |
COMPANYNAME.data.CacheableJsonStore = Ext.extend(Ext.data.Store, { | |
storageKeyName: null, // (string) sessionStorage key name | |
constructor: function (config) { | |
Ext.data.JsonStore.superclass.constructor.call(this, Ext.apply(config, { | |
reader: new Ext.data.JsonReader(config) |
Displays image thumbnails in a centered, horizontally flowing gallery.
A Pen by Andrew Mitchell Barfield on CodePen.
A console for the Web written in completely in JavaScript. The console supports Web versions of some Linux commands. This work is based, in part, on earlier work by Eric Bidelman.
A Pen by Andrew Mitchell Barfield on CodePen.
A console for the Web written in completely in JavaScript. The console supports Web versions of some Linux commands. This work is based, in part, on earlier work by Eric Bidelman.
A Pen by Andrew Mitchell Barfield on CodePen.