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
/* **** JAVA ******************************** */ | |
class A | |
{ | |
public String p = "from A"; | |
public String m() | |
{ | |
return this.p; // or simple p | |
} | |
} | |
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
// Java | |
/* *** test1 *** */ | |
class A | |
{ | |
public String p = "from A"; | |
public String m() | |
{ | |
return this.p; | |
} |
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
$str = "learning trails provide you with everything you need to.."; | |
foreach(Util::getSymbol($str, 0) as $cur){ | |
echo Util::charToHex($cur); // 6C6561726E696E672074... | |
} | |
... | |
/** | |
* @param string $str | |
* @param int $start |
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
-- example for http://stackoverflow.com/questions/24580287/#comment38085601_24580344 | |
-- MySQL AI-generator & LAST_INSERT_ID() | |
INSERT INTO `user` (`id`, `email`) VALUES (1, 'email1'); -- or your INSERT IGNORE INTO | |
INSERT INTO `user` (`id`, `email`) VALUES (2, 'email2'); | |
SELECT LAST_INSERT_ID(); -- should be 0 /note: all records successfully inserted | |
/* | |
CREATE TABLE `user` ( |
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
/* Light colors version */ | |
.regex_colorizer b , .richtext b, .community_sub_box b { | |
background: #EAEFF7; | |
color: #000080; | |
} | |
.regex_colorizer u , .richtext u { | |
background: #B388EF; | |
color: #F4F1F9; | |
} |
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
#[" | |
Updating version | |
"] | |
#[var ver = #[File get("_version")]] | |
#[var tpl = #[File get("Version.tpl")]] | |
#[var vsSBEDir = $($(ProjectDir:$(SolutionName)))] | |
#[var tStart = $([System.DateTime]::Parse("2015/01/15").ToBinary())] | |
#[var tNow = $([System.DateTime]::UtcNow.Ticks)] |
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
#[" | |
To restore packages with GetNuTool | |
It's important for packages of solution-level in VS2015 | |
https://github.com/NuGet/Home/issues/522 | |
"] | |
#[($([System.Convert]::ToInt32("$(VisualStudioVersion.Replace('.', ''))")) >= 140) | |
{ | |
#[NuGet gnt.raw("/p:ngconfig=\".nuget/packages.config\"")] | |
}] |
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
// This code was generated by a tool. | |
// Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. | |
namespace net.r_eg.vsSBE | |
{ | |
internal class Version | |
{ | |
public static readonly System.Version number = new System.Version(0, 11, 3, 47085); | |
public const string numberWithRevString = "0.11.3.47085"; | |
public const string numberString = "0.11.3"; | |
public const string branchName = "master"; |
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
: Deprecated example of how to get changes between revisions for SCM - git | |
@echo off | |
: Compare from sha1 | |
set fromsha1=73fa2e6a9c01f70c09fd2ed7eb965ee59b924580 | |
: Result into | |
set fout=Changes.diff | |
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
: Deprecated example of how to update revision with data from SCM - git | |
: format output: C++ preprocessor directives - #define (macro definitions) | |
@echo off | |
: Result into | |
set fout=revision.h | |
: Get data |
OlderNewer