Skip to content

Instantly share code, notes, and snippets.

View mehmetyilmaz001's full-sized avatar
🎯
Focusing

Mehmet Yılmaz mehmetyilmaz001

🎯
Focusing
View GitHub Profile
apply plugin: 'com.android.application'
android {
compileSdkVersion 22
buildToolsVersion "21.1.2"
defaultConfig {
applicationId "com.ninjakod.mehmetyilmaz.mywallet"
minSdkVersion 14
targetSdkVersion 22
apply plugin: 'com.android.library'
android {
compileSdkVersion 22
buildToolsVersion "22.0.1"
defaultConfig {
minSdkVersion 9
targetSdkVersion 22
versionCode 120
versionName "1.2.0"
@mehmetyilmaz001
mehmetyilmaz001 / expando
Created June 29, 2015 14:22
mali expando dynamic object
public static dynamic GetDynamicObject(Dictionary<string,object> properties) {
var dynamicObject = new ExpandoObject() as IDictionary<string, Object>;
foreach (var property in properties) {
dynamicObject.Add(property.Key,property.Value);
}
return dynamicObject;
}
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="css/StyleSheet1.css" rel="stylesheet" />
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" />
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
function MainSliderTrack() {
$('.da-slide').attrchange({
trackValues: true,
callback: function (event) {
if ($(event.target).hasClass('da-slide-current')) {
$('#slider-container').removeClass();
$('#slider-container').addClass('visible-lg-block visible-md-block');
useEffect(() => {
if(_.has(createQuestionRes, 'hasError') && !createQuestionRes.hasError){
history.push(getMenuItem('QA').path);
}
}, [createQuestionRes]);
const isInitialMount = useRef(true);
const createQuestionRes = useSelector( s => s.dialog.createQuestionRes);
useEffect(() => {
if(isInitialMount.current){
isInitialMount.current = false;
}else{ // Trigger useEffect only on update (no in did mount)
if(_.has(createQuestionRes, 'hasError') && !createQuestionRes.hasError){
history.push(getMenuItem('QA').path);
}
npm i less less-loader react-app-rewired babel-plugin-import customize-cra
"scripts": {
"start": "react-app-rewired start",
"build": "react-app-rewired build",
},
{"plugins": [[
"import",
[{
"libraryName": "antd",
"style": "css"
}]
]]}