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
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) |
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
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
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.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
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
CSC 340 Scientific Computing | |
Calculate exp(3.7) using Taylor's Expansion | |
Andrew M. Barfield | |
Thursday, January 15, 2009 | |
1:56:36 PM | |
Answer calculated in 29 iterations. | |
exp(3.7) = 40.447 |
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
CSC 340 Scientific Computing | |
Machine Epsilon Homework | |
Andrew M. Barfield | |
Wednesday, January 14, 2009 | |
3:15:29 PM | |
Float: | |
01) 0.5 | |
02) 0.25 |
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; | |
namespace StackExample { | |
class Program { | |
static void Main(string[] args) { | |
// Creates and initializes a new stack | |
Stack stackColl = new Stack(); |