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
/* Creating an org.jfxtras.scene.layout.Grid */ | |
public class MyGrid extends CustomNode { | |
override function create(): Node { | |
Grid { | |
rows: [ | |
Row{ | |
cells: [Text {content: "Username:"}, TextBox {}] | |
}, | |
Row{ |
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
# Powershell Prompt | |
$global:CurrentUser = [System.Security.Principal.WindowsIdentity]::GetCurrent() | |
function prompt | |
{ | |
$un = [Regex]::Match($CurrentUser.Name,"SOLIDWORKS\\+(.*)").Groups[1].Value | |
$hn = [Net.DNS]::GetHostName() | |
$host.ui.rawui.WindowTitle = $un + "@" + $hn #+ " Line: " + $host.UI.RawUI.CursorPosition.Y | |
Write-Host($un + "@" + $hn + " ") -foregroundcolor Green -nonewline; Write-Host ($(get-location)) -foregroundcolor Yellow | |
Write-Host(">") -nonewline -foregroundcolor Green |
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 | |
# use this script at the root directory of your local repo | |
# Input repo name and username | |
git remote add origin git@github.com:${2}/${1}.git | |
git push origin master |
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 | |
# input repository name, using '-' for any spaces ($1) | |
# input GH username $2 | |
mkdir ${1} | |
cd ${1} | |
git init | |
touch README | |
git add README | |
git commit -m 'first commit' | |
git remote add origin git@github.com:${2}/${1}.git |
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
/* SET UNICODE FONT */ | |
CDC *pDC = GetDC(); | |
LOGFONT lf; | |
memset(&lf, 0, sizeof(lf)); | |
lf.lfHeight = MulDiv(20, ::GetDeviceCaps(pDC->m_hDC, LOGPIXELSY), 72); | |
lf.lfWeight = FW_NORMAL; | |
lf.lfOutPrecision = OUT_TT_ONLY_PRECIS; | |
wcscpy(lf.lfFaceName, _T("Lucida Sans Unicode")); | |
CFont font; | |
font.CreateFontIndirect(&lf); |
NewerOlder