| gitflow | git |
|---|---|
git flow init |
git init |
git commit --allow-empty -m "Initial commit" |
|
git checkout -b develop master |
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
| # -*- coding: utf-8 -*- | |
| from datetime import datetime | |
| import sublime_plugin | |
| class TimestampCommand(sublime_plugin.EventListener): | |
| """Expand `isoD`, `now`, `datetime`, `utcnow`, `utcdatetime`, | |
| `date` and `time` | |
| """ |
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
| <?php | |
| function build_calendar($month,$year,$dateArray) { | |
| // Create array containing abbreviations of days of week. | |
| $daysOfWeek = array('S','M','T','W','T','F','S'); | |
| // What is the first day of the month in question? | |
| $firstDayOfMonth = mktime(0,0,0,$month,1,$year); |
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
| /* actions fired when listing/adding/editing posts or pages */ | |
| /* admin_head-(hookname) */ | |
| add_action( 'admin_head-post.php', 'admin_head_post_editing' ); | |
| add_action( 'admin_head-post-new.php', 'admin_head_post_new' ); | |
| add_action( 'admin_head-edit.php', 'admin_head_post_listing' ); | |
| function admin_head_post_editing() { | |
| echo 'you are editing a post'; | |
| } |
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
| using System.Collections.Generic; | |
| using System.IO; | |
| namespace Portal.Common.EmbeddedResources | |
| { | |
| public static class EmbeddedResourceTypes | |
| { | |
| public static string GetContentType(string path) | |
| { | |
| return MimeTypes[Path.GetExtension(path)]; |
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
| #!/usr/bin/env powershell | |
| <# | |
| .SYNOPSIS | |
| You can use this script to easly transform any XML file using XDT. | |
| To use this script you can just save it locally and execute it. The script | |
| will download its dependencies automatically. | |
| Created by sayediHashimi | |
| Modified by obscurerichard | |
| Thanks Stack Overflow: https://stackoverflow.com/questions/8989737/web-config-transforms-outside-of-microsoft-msbuild |
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
| using System; | |
| using System.Threading; | |
| static class Program { | |
| static void Main() { | |
| Console.Write("Performing some task... "); | |
| using (var progress = new ProgressBar()) { | |
| for (int i = 0; i <= 100; i++) { | |
| progress.Report((double) i / 100); |
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
| // modify default wc template override so it uses our plugin templates instead | |
| // https://www.skyverge.com/blog/override-woocommerce-template-file-within-a-plugin/ | |
| function lab_flavor_plugin_path() { | |
| // gets the absolute path to this plugin directory | |
| return untrailingslashit( plugin_dir_path( __FILE__ ) ); | |
| } | |
| add_filter( 'woocommerce_locate_template', 'lab_flavor_woocommerce_locate_template', 10, 3 ); | |
| function lab_flavor_woocommerce_locate_template( $template, $template_name, $template_path ) { | |
| global $woocommerce; |
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
| <?php | |
| /** | |
| * User: Martin Neundorfer and Arnfired Weber | |
| * Date: 01.02.2018 | |
| * Time: 10:54 | |
| * Vendor: LABOR.digital | |
| */ | |
| namespace Labor\X\Utilities\Arrays\Helpers; |
OlderNewer