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 {text-decoration: none;} | |
.roll-link { | |
display: inline-block; | |
overflow: hidden; | |
vertical-align: top; | |
-webkit-perspective: 400px; | |
-moz-perspective: 400px; |
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
*, *:before, *:after { | |
/* Chrome 9-, Safari 5-, iOS 4.2-, Android 3-, Blackberry 7- */ | |
-webkit-box-sizing: border-box; | |
/* Firefox (desktop or Android) 28- */ | |
-moz-box-sizing: border-box; | |
/* Firefox 29+, IE 8+, Chrome 10+, Safari 5.1+, Opera 9.5+, iOS 5+, Opera Mini Anything, Blackberry 10+, Android 4+ */ | |
box-sizing: border-box; | |
} |
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 addColor(doc, colorName, colorModel, colorValue){ | |
if (colorValue instanceof Array == false) { | |
colorValue = [(parseInt(colorValue, 16) >> 16 ) & 0xff, (parseInt(colorValue, 16) >> 8 ) & 0xff, parseInt(colorValue, 16 ) & 0xff ]; | |
colorSpace = ColorSpace.RGB; | |
} | |
else { | |
if(colorValue.length == 3) | |
colorSpace = ColorSpace.RGB; | |
else | |
colorSpace = ColorSpace.CMYK; |
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 uiFrmDragDropTest | |
Private Sub uiFrmDragDropTest_Load(sender As Object, e As EventArgs) Handles MyBase.Load | |
' Me.AllowDrop = True | |
' TextBox1.AllowDrop = True | |
End Sub | |
'' form drag-drop | |
Private Sub uiFrmDragDropTest_DragEnter(sender As Object, e As DragEventArgs) Handles Me.DragEnter | |
If (e.Data.GetDataPresent(DataFormats.FileDrop)) Then |
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
Cursor on all lines: | |
CTRL+A then SHIFT+CTRL+L | |
Cursor on every nth line: | |
CTRL+F, turn on RegEx, use (.*(\n|$)){n} | |
then press ALT+ENTER to find all | |
then press LEFT arrow to remove the selection and get the cursors |
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 | |
oldnum=`cut -d '"' -f2 version.php` | |
echo "Current version is $oldnum" | |
echo "Enter new version:" | |
read version | |
echo "<?php echo \"$version\";" > version.php |
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
// see http://stackoverflow.com/a/784547 | |
function replaceLineBreaks(str) { | |
return str.replace(/(?:\r\n|\r|\n)/g, '<br>'); | |
} |
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
import sublime, sublime_plugin | |
class IncrementNumbersCommand(sublime_plugin.TextCommand): | |
def run(self, edit): | |
start_value = int(self.view.substr(self.view.sel()[0])) | |
counter = 0 | |
for selection in self.view.sel(): | |
self.view.insert(edit, selection.begin(), str(start_value + counter)) | |
counter = counter + 1 |
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
cmdkey /list | ForEach-Object{if($_ -like "*target=TERMSRV/*"){cmdkey /del:($_ -replace " ","" -replace "Target:","")}} | |
echo "Connecting to 192.168.1.100" | |
$Server="192.168.1.100" | |
$User="Administrator" | |
$Password="AdminPassword" | |
cmdkey /generic:TERMSRV/$Server /user:$User /pass:$Password | |
mstsc /v:$Server |
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
Show hidden characters
[ | |
{ | |
"args": null, | |
"command": "select_all" | |
}, | |
{ | |
"args": { | |
"setting": "tab_size", | |
"value": 4 | |
}, |
OlderNewer