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
'See http://mrbigglesworth79.blogspot.com/2011/05/oh-no-not-another-way-to-write-csv-file_02.html To where I got the code from | |
' and then I modified it | |
Imports System.Runtime.CompilerServices | |
Imports System.IO | |
Imports System.Text | |
Imports System.Linq.Expressions | |
Namespace Exporting | |
Module CSV |
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
<# | |
fileManager.StartNewFile(entity.Name & "MetaData" & ".vb") | |
BeginNamespace(code) | |
#> | |
' Copy this class to a partial file to get started on adding metadata to <#=entity.name#> class | |
<#=codeStringGenerator.EnityClassMetaDataOpening(entity)#> | |
<# | |
If simpleProperties.Any() Then | |
For Each edmProperty As EdmProperty In simpleProperties | |
#> |
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
Imports System.ComponentModel.DataAnnotations | |
Imports System.Reflection | |
Imports System.Runtime.CompilerServices | |
Module Extensions | |
<Extension> | |
Public Function GetAttribute(Of T As Type)(MI As MemberInfo, AttType As T, Optional Inherit As Boolean = True) As Attribute | |
Dim Attrs As Attribute() = MI.GetCustomAttributes(AttType, Inherit) |
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
#!/bin/bash | |
function procgit { | |
git count-objects -vH; | |
echo | |
git fetch --all | |
echo | |
git gc | |
git count-objects -vH | |
echo |
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
Modeltype Date? | |
@code Dim dt As Date = Now | |
If Model.HasValue Then dt = Model | |
@Html.TextBox("", String.Format("{0:d}", dt.ToShortDateString()), New With {.Value = dt.ToString("yyyy-MM-dd"), .class = "form-control datecontrol datepicker", .Type = "date"}) | |
End code |
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
Imports System.Runtime.CompilerServices | |
Public Interface IMerge(Of T) | |
Function Matched() As IEnumerable(Of IMergeMatched(Of T)) | |
Function Matched(predicate As Func(Of T, T, Boolean)) As IEnumerable(Of IMergeMatched(Of T)) | |
Function NotMatchedBySource() As IEnumerable(Of T) | |
Function NotMatchedBySource(predicate As Func(Of T, Boolean)) As IEnumerable(Of T) |
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
#!/bin/bash | |
# hosted at https://gist.github.com/Mark-Booth/5058384 | |
# forked from https://gist.github.com/lth2h/4177524 @ ae184f1 by mark.booth | |
# forked from https://gist.github.com/jehiah/1288596 @ e357c1e by lth2h | |
# ideas from https://github.com/kortina/bakpak/blob/master/bin/git-branches-vs-origin-master | |
# this prints out some branch status | |
# (similar to the '... ahead' info you get from git status) | |
# example: |
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
[alias] | |
amend = commit --amend | |
br = branch | |
co = checkout | |
cob = checkout -b | |
ds = diff --staged | |
dc = diff --cached | |
di = diff | |
dis = diff --stat | |
cfg = config |
NewerOlder