snippets 来自https://css-tricks.com/perfect-full-page-background-image/

来自https://css-tricks.com/perfect-full-page-background-image/

Perfect-full-page-background-image.snippets
html { 
  background: url(images/bg.jpg) no-repeat center center fixed; 
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

snippets 复位的密码功能于Ubuntu的Linux的庆典 - 在窗口

linux-pw-reset
https://askubuntu.com/questions/772050/reset-the-password-in-ubuntu-linux-bash-in-windows


    Run bash and make a note of your Linux username (this need not match your Windows username), see How can I find out my user name?
    Close Bash on Ubuntu if it is running (or the next command will fail).

    In Windows admin command prompt (Super+X, A) change the default user to root:

    ubuntu config --default-user root

If you are using Ubuntu 18.04 in WSL, the command has changed to ubuntu1804 , so

ubuntu1804 config --default-user root

    Now Bash on Ubuntu on Windows logs you in as root without asking password

    Use passwd command in Bash to change the user password (the user whose password you want to reset):

    passwd your_username

    Change the default user back to your normal user in Windows command prompt

    ubuntu config --default-user  your_username

If you are using Ubuntu 18.04 in WSL, the command has changed to ubuntu1804 , so

ubuntu1804 config --default-user your_username

snippets Console.Readline快捷方式

DDD

readline
<?xml version="1.0" encoding="utf-8" ?>
<CodeSnippets  xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
    <CodeSnippet Format="1.0.0">
        <Header>
            <Title>cr</Title>
            <Shortcut>cr</Shortcut>
            <Description>Code snippet for Console.ReadLine</Description>
            <Author>Whoever you want it to be</Author>
            <SnippetTypes>
                <SnippetType>Expansion</SnippetType>
            </SnippetTypes>
        </Header>
        <Snippet>
            <Declarations>
                <Literal Editable="false">
                    <ID>SystemConsole</ID>
                    <Function>SimpleTypeName(global::System.Console)</Function>
                </Literal>
            </Declarations>
            <Code Language="csharp"><![CDATA[$SystemConsole$.ReadLine();]]>
            </Code>
        </Snippet>
    </CodeSnippet>
</CodeSnippets>

snippets 从博客网址中删除/ category /

YOAST
Yoast plugin > settings > search appearance > taxonomies > remove category prefix

snippets 间隔

添加以添加空格

spacer
<!-- SPACER -->
<table align="center" cellpadding="0" cellspacing="0" border="0" style="width:100%; max-width:600px;"><tr><td bgcolor="#ffffff" height="20" align="center" style="height:20px; line-height:20px; font-size:20px; mso-line-height-rule: exactly;background-color: #ffffff;">&nbsp;</td></tr></table>
<!-- /SPACER -->

snippets 分隔线

Divider line
<!-- START Divider Line  -->
<table width="100%" cellpadding="0" cellspacing="0" border="0" style="width:100%; max-width:600px;background-color: #ffffff;">
		<tr>
		<td style="padding:20px 0px;">
			<table width="100%" cellpadding="0" cellspacing="0" border="0" style="width:100%;">
			<tr><td height="2" style="height:2px; line-height:2px; border-bottom:2px solid #efefef; font-size:2px;">&nbsp;</td></tr>
			</table>
		</td>
		</tr>
</table>
<!-- END Divider Line -->

snippets CTA按钮

cta
<!-- START CTA ONLY -->
<table width="100%" cellpadding="0" cellspacing="0" border="0" style="width:100%; max-width:600px;background-color: #ffffff;">
<tr>
<td align="center" valign="top" style="padding:20px 0px;">    

<!-- Solid Button -->
<table cellspacing="0" cellpadding="0" border="0" style="display: inline-block;">
<tr>
<td style="-webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; background-color: #002f5e;"><a href="http://www.example.com" style="padding: 10px 40px; display: inline-block; border: 1px solid #002f5e; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; font-family: Helvetica, Arial, sans-serif; font-size: 15px; line-height: normal; color: #ffffff; font-weight: bold; text-decoration: none;" target=""><!--[if mso]>&nbsp;&nbsp;&nbsp;<![endif]-->Call to Action<!--[if mso]>&nbsp;&nbsp;&nbsp;
<![endif]--></a>
</td>
</tr>
</table>
<!-- / solid button -->
</td>
</tr>
</table>
<!-- END CTA ONLY -->

snippets Ultisnips高级技巧

advanced.snippets
global !p
def complete(t, opts):
	if t:
		opts = [o[len(t):] for o in opts if o.startswith(t)]
	if len(opts) == 1:
	  return opts[0]
	return "(" + "|".join(opts) + ")"
endglobal

# snippt option b means only enable at begin of line
# mirror and transformation ${1/regex/replace/} use $1,2,.. for regex group reference
snippet t "html tag" b 
<${1:div}>
	$2
<${1/(\w+).*/$1/}>
endsnippet 
# Shell expansion use ``, vimL expansion using `!v ...` , python expansion using `!p ...`
snippet todo "TODO" b
// TODO ${1:desc} <`!v strftime('%c')` `echo $USER`> 
endsnippet
# regex trigger using option r, only expands when trigger matches regex
snippet '^ st' "simple" r
...
endsnippet

snippets SharePoint 2013 URL端点

test
URL endpoint	Description	Supported HTTP Method
/_api/Web/Lists	Retrieving all lists in a site and adding new lists	GET, POST
/_api/Web/Lists/GetByTitle('listname')	Getting a list details by its title and updating it as well. If anyone changes your list title, your code will break.	GET, POST
/_api/Web/Lists(guid'guid id of your list')	Same as above but changing list title will not affect the code.	GET, POST
/_api/Web/Lists/GetByTitle(' listname ')/Fields	Retrieving all fields associated with a list and add new fields	GET, POST
/_api/Web/Lists/GetByTitle('listname')/	Getting details of a field, modifying and deleting it.	GET, PUT, PATCH, MERGE, DELETE
Fields/GetByTitle('fieldname')
/_api/Web/Lists/GetByTitle('listname')	Retrieving all items in a list and adding new items	GET, POST
/Items
/_api/web/lists/GetByTitle('listname')	This endpoint can be used to get, update and delete a single item.	GET, PUT, PATCH, MERGE, DELETE
/GetItemById(itemId)

snippets VNC://192.168.0.6

远程访问<br/>在远程Ubuntu上运行一个程序:<br/> ssh -X ubuntuVM然后运行你的程序,例如:firefox&

source