Skip to content

Instantly share code, notes, and snippets.

View mberneti's full-sized avatar
🎯
Focusing

mohammadreza berneti mberneti

🎯
Focusing
View GitHub Profile
@mberneti
mberneti / Immutable JS Examples
Created May 30, 2018 23:37 — forked from singhshivam/Immutable JS Examples
Immutable JS Examples
List()
var list = Immutable.List([1,2,3])
// [1, 2, 3]
List.isList()
Immutable.List.isList(list)
// true
List.of()
var list = Immutable.List.of(1,2,3);
@mberneti
mberneti / Example1.xml
Last active August 29, 2015 14:26 — forked from JoshClose/Example1.xml
Making a Custom Window Resizable in WPF
<aero:SystemDropShadowChrome CornerRadius="10" Margin="10">
<Border BorderThickness="1" BorderBrush="Black" Background="White"
Margin="0" CornerRadius="10">
<Grid>
<Border Height="40" Background="#01000000" VerticalAlignment="Top"
CornerRadius="10,10,0,0" MouseLeftButtonDown="DragWindow" />
<Rectangle x:Name="ResizeN" Fill="Yellow" VerticalAlignment="Top"
Height="4" Margin="9,-2,9,0" MouseEnter="DisplayResizeCursor"
MouseLeave="ResetCursor" PreviewMouseLeftButtonDown="Resize" />
<Rectangle x:Name="ResizeE" Fill="Yellow" HorizontalAlignment="Right"
## Configure eth0
#
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
NM_CONTROLLED="yes"
ONBOOT=yes
HWADDR=A4:BA:DB:37:F1:04
TYPE=Ethernet
BOOTPROTO=static