Skip to content

Instantly share code, notes, and snippets.

Demircan Celebi demircancelebi

Block or report user

Report or block demircancelebi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am demircancelebi on github.
  • I am demircancelebi (https://keybase.io/demircancelebi) on keybase.
  • I have a public key ASAM2f5feSRL1jvGDD39jpnLezV7aVGzm3RlIzR26VChXQo

To claim this, I am signing this object:

@demircancelebi
demircancelebi / xmlToJson.js
Last active Jun 19, 2019 — forked from chinchang/xmlToJson.js
Function to convert XML to JSON
View xmlToJson.js
// Changes XML to JSON
// Modified version from here: http://davidwalsh.name/convert-xml-json
xmlToJson(xml) {
// Create the return object
let obj = {};
if (xml.nodeType === 1) { // element
// do attributes
if (xml.attributes.length > 0) {
obj['@attributes'] = {};
@demircancelebi
demircancelebi / styles.less
Last active Feb 4, 2016
atom retina fix - I am using Spacegray Dark Theme but the code should be a starting point for other themes as well
View styles.less
atom-text-editor {
font-size: 24px;
}
.tab-bar {
height: 60px;
.tab {
padding-right: 48px;
max-width: 350px;
@demircancelebi
demircancelebi / reset.js
Created Jul 9, 2015
node.js modem reset
View reset.js
/*
Usage:
You should allow telnet in modem settings beforehand (might be allowed already)
You should set opts according to your modem settings
loginText = When you try `telnet 192.168.2.1` in terminal
it asks you login name for the modem. Change
this text to something you see on that line.
I saw my modem name and used that.
@demircancelebi
demircancelebi / dabblet.css
Created Apr 17, 2015
How to make 3-corner-rounded triangle in CSS (SO)
View dabblet.css
/**
* How to make 3-corner-rounded triangle in CSS (SO)
* http://stackoverflow.com/q/14446677/1397351
*/
.triangle {
position: relative;
background-color: orange;
text-align: left;
}
.triangle:before,
View gist:4324288632110b1a9137
var _ = require('underscore')
, Base = require('./base');
/**
* Takes a nested object and returns a shallow object keyed with the path names
* e.g. { "level1.level2": "value" }
*
* @param {Object} Nested object e.g. { level1: { level2: 'value' } }
* @return {Object} Shallow object with path names e.g. { 'level1.level2': 'value' }
*/
View gist:7736369
/*
M2WA 0.1.3 (Metrekare Web Application)
November 2013
@author Batuhan Icoz <i@bt.hn>
@author Demircan Celebi <demircancelebi@gmail.com>
@license Proprietary. Check README.md
@component search
@desc This the main file for this component, this has router and the initializer
*/
You can’t perform that action at this time.