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
#Add the profile path to the environment path variable | |
$ProfileRoot = (Split-Path -Parent $MyInvocation.MyCommand.Path) | |
$env:path = ";$ProfileRoot" | |
#Load all of the modules from ./Modules/* that aren't already loaded. | |
(gci $ProfileRoot"/Modules") | ForEach { if ( -Not( Get-Module $_.Name ) ) { Import-Module $_.Name; Write-Host Importing Module: $_.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
#include <iostream> | |
#include <ctime> | |
#include <ctype.h> | |
using namespace std; | |
const int wordSIZE = 50; | |
void checkVowel(char word[], int size, bool &first_VOWEL, bool &first_CAP, bool &VOWEL ); | |
int arrayLength(char[]); |
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
Dim states as Dictionary(Of String, String)() From { {"CA", "California"} } | |
'to get the name just call where stateCode is the inputted string from the user. | |
Dim name as String = states(_stateCode) |
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
Imports System.Runtime.CompilerServices | |
<Extension()> | |
Public Module GenericExtensions | |
Function Coalesce(Of T)(first As T, second As T) As T | |
If (first Is Nothing) Then | |
Return second | |
End If | |
Return first | |
End Function |
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.Collections.Generic; | |
using System.Text; | |
using System.Data; | |
using Oracle.DataAccess.Client; | |
using System.Diagnostics; | |
namespace DataBase | |
{ |
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.Collections.Generic; | |
using System.Text; | |
using System.Data; | |
using Oracle.DataAccess.Client; | |
using System.Diagnostics; | |
namespace DataBase | |
{ |
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
Class Foo | |
<Convertible()> | |
Public Property String Baz | |
<Convertible()> | |
Public Propery String Faz | |
End Class | |
Class Bar | |
<ErrorMessage(“Error Converting BAZ”)> |
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
// A last.fm nowplaying plugin. | |
// Author: thevdude ([email protected]) | |
// | |
// Uses installed node modules mongoose, lastfm, inflection, and bitly. | |
// | |
// Current functions include: | |
// Display user's currently or last played track (np) | |
// Compare lastfm users with the tasteometer (cp) | |
// Get a users lastfm url (url) | |
// Find a user's top ten artists for different time periods (topten) |
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
# Install with: | |
# bash < <(curl -L https://raw.github.com/gist/2771479) | |
# | |
# Reference: http://blog.wyeworks.com/2011/11/1/ruby-1-9-3-and-ruby-debug | |
echo "Installing ruby-debug with ruby-1.9.3-p0 ..." | |
curl -OL http://rubyforge.org/frs/download.php/75414/linecache19-0.5.13.gem | |
curl -OL http://rubyforge.org/frs/download.php/75415/ruby-debug-base19-0.11.26.gem |
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
for (int j = 0; j < 8; j++) | |
{ | |
long firstCalc = CRCTable[counterOne] << 1; | |
long secondCalc = CRCTable[counterOne] & (1 << 31); //or CRCTable[counterOne] & (5) | |
CRCTable[counterOne] = firstCalc ^ ((secondCalc == 0)? polynom : 0); | |
} | |
//Or this would also be equivelant |
OlderNewer