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
<?php | |
// improved version: https://gist.github.com/RadGH/31f16cd4705a2d8076021a9ad528f34f | |
// ---------- | |
// Example #1: HTML | |
$phone_number = '555.123.4567'; | |
echo format_phone( $phone_number ); |
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
// ---- | |
// Sass (v3.3.7) | |
// Compass (v1.0.0.alpha.18) | |
// ---- | |
.component, | |
%component { | |
content: 'component'; | |
&--variant { |
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
Go to menu: | |
Find -> Find in Files... (windows: ctrl+shift+f) | |
Switch on reg_ex button (windows: alt+r) | |
Find: | |
^.*\S+.*$ | |
Where: | |
c:\your_folder\,*.php,*.js,*.inc,*.html,*.htm,*.scss, -*/folder_to_exclude/*, -*.min.js |
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
dependencies[] = ctools | |
; Views Handlers | |
files[] = views/mymodule_handler_handlername.inc |
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
# have drush rsync a particular file folder | |
drush rsync @dev:%files @local:%files --progress | |
# have sql-sync get the database from the server without cache | |
drush sql-sync @dev @local --no-cache | |
# have drush perform a git-pull | |
drush @site.dev gp |
NewerOlder