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
Public Class RenderUnit | |
' 1 inch = 72 points | |
Public WidthPoints As Integer | |
Public HeightPoints As Integer | |
Public Items As IEnumerable | |
Public FileName As String | |
End Class | |
Public Interface IPDFGenerator |
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
Function CreatePDF(ByVal items As Dictionary(Of String, Object)(), ByVal language As String) As String | |
Dim pdf As Pdf = New Pdf() | |
Dim license As License = New License | |
license.SetLicense(Server.MapPath("~/Licenses/Aspose.Custom.lic")) | |
Dim section As Section = pdf.Sections.Add() | |
'section.PageInfo.PageWidth = 360 ' 1 inch = 72 points = 5 * 72 = 360 | |
'section.PageInfo.PageHeight = 504 | |
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
Public Class RenderUnit | |
' 1 inch = 72 points | |
Public WidthPoints As Integer | |
Public HeightPoints As Integer | |
Public Items As IEnumerable | |
Public FileName As String | |
End Class | |
Public Interface IPDFLayout |
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
Public Class RenderUnit | |
' 1 inch = 72 points | |
Public WidthPoints As Integer | |
Public HeightPoints As Integer | |
Public Items As IEnumerable | |
Public FileName As String | |
End Class | |
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
# Place the below into the following file: ~/.config/fish/config.fish | |
# migrating from https://github.com/robbyrussell/oh-my-zsh/blob/master/plugins/git/git.plugin.zsh | |
# Aliases | |
alias g='git' | |
#compdef g=git | |
alias gst='git status' | |
#compdef _git gst=git-status | |
alias gd='git diff' | |
#compdef _git gd=git-diff |
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
#!/bin/bash | |
# | |
# For http://stackoverflow.com/questions/6162891/installing-couchdb-in-aws-ec2-free-tier | |
# | |
# This script installs and configures couchdb on a fresh Amazon Linux AMI instance. | |
# It is a modified fork of the original rake script, but does not use rake (just good ol' linux tools) | |
# Based on: http://wiki.apache.org/couchdb/Installing_on_RHEL5 |
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
defaults write NSGlobalDomain KeyRepeat -int 0 |
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 the people asking about to show only the current path, do this: | |
- Open this directory ~/.oh-my-zsh/themes | |
- Open the agnoster.zsh-theme file with any text editor | |
- Go to the prompt_dir() function | |
- Replace the line in the function with this: prompt_segment blue black '%c' | |
- Restart iTerm or enter source ~/.zshrc | |
- Done. Now the theme only shows the current path. |
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
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH=/Users/skapoor/.oh-my-zsh | |
# Set name of the theme to load. Optionally, if you set this to "random" | |
# it'll load a random theme each time that oh-my-zsh is loaded. | |
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes | |
ZSH_THEME="agnoster" |
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
Download and install the fonts from: https://github.com/powerline/fonts | |
Use the following user settings in VS Code: | |
// Place your settings in this file to overwrite the default settings | |
{ | |
"terminal.external.osxExec": "iterm.app", | |
"terminal.integrated.shell.osx": "/bin/zsh", | |
"terminal.integrated.fontFamily": "Source Code Pro for Powerline" | |
} |
OlderNewer