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
vim ~/.bash_profile |
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
alias ll='ls -lGaf' |
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
/*! | |
* Grunt | |
* $ npm install grunt-contrib-uglify grunt-autoprefixer grunt-contrib-cssmin grunt-contrib-imagemin grunt-contrib-sass grunt-contrib-watch grunt-contrib-concat grunt-contrib-clean grunt-contrib-jshint grunt-notify --save-dev | |
*/ | |
module.exports = function(grunt) { | |
grunt.initConfig({ | |
// Sass |
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
// /mysite/foo/<fooId>?name=query Eğer fooId non-ascii karakter içeriyor ise encode edilecektir | |
$http.get("/mysite/foo/" + encodeURIComponent(fooId), { | |
params: { name : query } | |
}) | |
.then(function(data) { | |
}); |
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
// /mysite/foo?name=queryDegeri şeklinde istek oluşacak ve parametre değeri url encode edilecektir. | |
$http.get("/mysite/foo", { | |
params: { name : query } | |
}) | |
.then(function(data) { | |
}); |
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
// **** Karakter problemi ile karşılaşılır **** | |
// Eger 'query' non-ascii karakter icerirse server a doğru karakterler gitmez | |
$http.get("/mysite/foo?name=" + query) | |
.then(function(data) { | |
}); |
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
... | |
<profiles> | |
<profile> | |
<id>production</id> | |
<properties> | |
<spring.profiles.active>production</spring.profiles.active> | |
</properties> | |
</profile> | |
<profile> | |
<id>development</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
# This config file is processed on servlet initialization to activate profile for spring application context | |
spring.profiles.active=${spring.profiles.active} |
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
public class WebAppInitializer implements WebApplicationInitializer { | |
private static final Logger logger = LoggerFactory.getLogger(WebAppInitializer.class); | |
public static final String PROFILE_CONFIG_FILE = "/config/profile.config"; | |
@Override | |
public void onStartup(ServletContext servletContext) throws ServletException { | |
try { | |
// Access profile config file for active profile | |
Properties properties = new Properties(); |
NewerOlder