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
| 1x1 image | |
| white | |
| data:image/gif;base64,R0lGODlhAQABAAAAACwAAAAAAQABAAACAkwBADs= | |
| data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw== | |
| black | |
| data:image/gif;base64,R0lGODlhAQABAIAAAAAAAAAAACH5BAAAAAAALAAAAAABAAEAAAICTAEAOw== | |
| transparent |
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
| syntax: | |
| dataurl := "data:" [ mediatype ] [ ";base64" ] "," data | |
| mediatype := [ type "/" subtype ] *( ";" parameter ) | |
| data := *urlchar | |
| parameter := attribute "=" value | |
| e.g. | |
| data:text/html,<html><body><p><b>Hello, world!</b></p></body></html> | |
| data:text/plain;charset=UTF-8;base64,5L2g5aW977yM5Lit5paH77yB |
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
| if(mb_strlen($string,$charset) > $length) { | |
| $string = mb_substr($string,0,$length,$charset); | |
| return preg_replace('/(\p{Mc}|\p{Zl})+$/u','',$string).$suffix; | |
| } else { | |
| return $string; | |
| } |
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
| text-shadow: 0 0 20px #fefcc9, 10px -10px 30px #feec85, -20px -20px 40px #ffae34, 20px -40px 50px #ec760c, -20px -60px 60px #cd4606, 0 -80px 70px #973716, 10px -90px 80px #451b0e; |
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
| <xsl:output doctype-system="about:legacy-compat" method="html"/> |
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
| <xsl:for-each select="data/entry[position() mod 3 = 1]"> | |
| <tr> | |
| <xsl:for-each select=". | following-sibling::entry[position() < 3]"> | |
| <td> | |
| <xsl:value-of select="@id"/> | |
| </td> | |
| </xsl:for-each> | |
| </tr> | |
| </xsl:for-each> |
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 isValid(id) { | |
| return typeof id === 'string' && id.match(/^[a-z][12][0-9]{8}$/i) && (function(id) { | |
| var hash = [1, 10, 19, 28, 37, 46, 55, 64, 39, 73, 82, 2, 11, 20, 48, 29, 38, 47, 56, 65, 74, 83, 21, 3, 12, 30][id.charCodeAt(0) - 65]; | |
| for (var i = 1; i < 9; i++) { | |
| hash += (9 - i) * (id.charCodeAt(i) - 48); | |
| } | |
| return (hash + id.charCodeAt(9) - 48) % 10 === 0; | |
| })(id); | |
| } |
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
| sudo find . -name ".DS_Store" -depth -exec rm {} \; |
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
| tar -cvf ../filename.tar . |
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
| #by David UnderHill @ http://stackoverflow.com/questions/3242282/how-to-configure-an-existing-git-repo-to-be-shared-by-a-unix-group | |
| ex: share a git repo to a group called foo | |
| chgrp -R foo repodir # set the group | |
| chmod -R g+rw repodir # allow the group to read/write | |
| chmod g+s `find repodir -type d` # new files get group id of directory | |
| config.sharedRepository = true |
OlderNewer