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
Attribute VB_Name = "ResetComments" | |
Sub ResetComments() | |
' ADD TO %appdata%\Microsoft\Excel\XLSTART\PERSONAL.XLSB | |
Dim pComment As Comment | |
Dim maxWidth As Integer | |
maxWidth = 250 | |
For Each pComment In Application.ActiveSheet.Comments | |
pComment.Shape.Top = pComment.Parent.Top + 15 | |
pComment.Shape.Left = pComment.Parent.Offset(0, 1).Left + 25 | |
pComment.Shape.TextFrame.AutoSize = True |
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
# from https://medium.com/@Drew_Stokes/bash-argument-parsing-54f3b81a6a8f | |
#!/bin/bash | |
PARAMS="" | |
while (( "$#" )); do | |
case "$1" in | |
-a|--my-boolean-flag) | |
MY_FLAG=0 | |
shift | |
;; |
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
Verifying that +seberard is my blockchain ID. https://onename.com/seberard |
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
[ | |
{ "name": "white", | |
"iscc-nbs": 263, | |
"hex": "#F2F3F4" }, | |
{ "name": "black", | |
"iscc-nbs": 267, | |
"hex": "#222222" }, | |
{ "name": "yellow", | |
"iscc-nbs": 82, | |
"hex": "#F3C300" }, |
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
a[id]:before { | |
display: inline-block; | |
width: 5em; | |
content: '#' attr(id); | |
margin-left: -5em; | |
text-align: right; | |
font-size: small; | |
} |
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/sh | |
# merge the shared branch | |
if [ -n "$(git status --porcelain)" ]; then | |
echo "Working copy not cleaned, please update manually"; | |
git status | |
else | |
git merge shared | |
git clean -f -d | |
git log --pretty=format:'%h -%d %s <%an> (%ci)' --abbrev-commit > .changelog |
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
// Set up the environment for creating the initial context | |
Hashtable env = new Hashtable(); | |
env.put(Context.INITIAL_CONTEXT_FACTORY, | |
"com.sun.jndi.ldap.LdapCtxFactory"); | |
env.put(Context.PROVIDER_URL, "ldap://localhost:389/o=JNDITutorial"); | |
// Authenticate as S. User and password "mysecret" | |
env.put(Context.SECURITY_AUTHENTICATION, "simple"); | |
env.put(Context.SECURITY_PRINCIPAL, "cn=S. User, ou=NewHires, o=JNDITutorial"); | |
env.put(Context.SECURITY_CREDENTIALS, "mysecret"); |
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
function new_contactmethods( $contactmethods ) { | |
$contactmethods['twitter'] = 'Twitter'; // Add Twitter | |
$contactmethods['facebook'] = 'Facebook'; // Add Facebook | |
unset($contactmethods['yim']); // Remove Yahoo IM | |
unset($contactmethods['aim']); // Remove AIM | |
unset($contactmethods['jabber']); // Remove Jabber | |
return $contactmethods; | |
} |