Skip to content

Instantly share code, notes, and snippets.

Daniel Dimov dimovdaniel

Block or report user

Report or block dimovdaniel

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 gist:3cadd6b7aafe322e2d9daa45126fefe3
function startSettingBackednLanguage(){
//1. Get user language
var curLangRef = firebase.app.database().ref('users/'+firebase.app.auth().currentUser.uid);
curLangRef.on('value', function(snapshot) {
var currentLangData=snapshot.val()&&snapshot.val().language?snapshot.val().language.toUpperCase():"GB";
language=currentLangData;
Translation.fetchAndSetLanguageAndSetUser(currentLangData,false,function(allAvailableLanguages){
loggedIn=true;
availableLaguages=allAvailableLanguages;
View gist:775b1d4d66e77f84080515ad3c03c92c
function startSettingBackednLanguage(){
//1. Get user language
var curLangRef = firebase.app.database().ref('users/'+firebase.app.auth().currentUser.uid);
curLangRef.on('value', function(snapshot) {
var currentLangData=snapshot.val()&&snapshot.val().language?snapshot.val().language.toUpperCase():"GB";
language=currentLangData;
Translation.fetchAndSetLanguageAndSetUser(currentLangData,false,function(allAvailableLanguages){
loggedIn=true;
availableLaguages=allAvailableLanguages;
View .babelrc
{
"presets": ["babel-preset-expo"],
"env": {
"development": {
"plugins": ["@babel/plugin-transform-react-jsx-source"]
}
}
}
View nightclubevents.json
{
"bookings" : {
"FInWCs0XjVf1PosP6cPAfibMsDq1" : {
"1496856215703" : {
"clubName" : "Summer club Central Park",
"eventName" : "Libero band",
"eventTime" : "06/09/2017 00:00 PM",
"numPersons" : 4,
"numTables" : 1,
"photo" : "https://slack-imgs.com/?c=1&url=https%3A%2F%2Fscontent-vie1-1.xx.fbcdn.net%2Fv%2Ft31.0-8%2F18839859_1352361488133231_2806986402351034162_o.jpg%3Foh%3Dff2d6cf1ce10691c025f1e143bb78c1b%26oe%3D599BEE42",
View comments.css
panel-shadow {
box-shadow: rgba(0, 0, 0, 0.3) 7px 7px 7px;
}
.panel-white {
border: 1px solid #dddddd;
}
.panel-white .panel-heading {
color: #333;
background-color: #fff;
border-color: #ddd;
View gist:e74be15bab3d5ca7e1a058baf1ded124
"dropdowns":["status","country"],
"dropdownOptions":[{"key":"status","options":["new","processing","rejected","completed"]},{"key":"country","options":["mk","Macedonia","us","USA"]}],
View events.json
{
"items":[
{
"img":"http://res.cloudinary.com/mobiadm/image/fetch/w_200,h_75,c_fill/https://s3-us-west-1.amazonaws.com/storage-platform.cloud.appcelerator.com/iTw12lRoBZgIfhSVW5LjMVimIwuw9M44/photos/44/70/58642a54503c1ee41f0121b5/15493843_929351143831758_2885896169998406200_o_original.jpg",
"name":"Happy New Year at XO - eXtraOrdinary Club | DJ Dimitris Patsis",
"date":"2016-12-31 22:00",
"description":"XO - eXtraOrdinary Club wishes you HAPPY NEW YEAR !! Сабота 31 Декември - DJ Dimitris Patsis & DJ Bobi (94.7) во Клуб XO !!"
},
{
"img":"http://res.cloudinary.com/mobiadm/image/fetch/w_200,h_75,c_fill/https://s3-us-west-1.amazonaws.com/storage-platform.cloud.appcelerator.com/iTw12lRoBZgIfhSVW5LjMVimIwuw9M44/photos/70/ac/58642a04503c1ee41f0121ae/15380788_10208871112789220_1633578718810049930_n_original.jpg",
View shop.json
{"items":[
{
"img":"https://cdn.shopify.com/s/files/1/0932/9138/products/skate-732760_640_b5732458-9c70-4284-9c5b-3ae6c0dc2a69_large.jpg",
"title":"ANDROMEDA",
"description":"Sunglasses just for you",
"price":"$12"
},
{
"img":"https://cdn.shopify.com/s/files/1/0932/9138/products/flower-child-336658_640_large.jpg",
"title":"DONIA SUNGLASSES",
View gallery.json
View gist:794c6fb6e3d066253f1e656530f2b146
{
"id": "74db2ba3-6cfa-41f3-510e-bdd7c6776ae3",
"sender": "app",
"sender_role": "app",
"sender_relative_id": "",
"created_at": "2016-12-28T14:23:26.331172Z",
"updated_at": "2016-12-28T14:23:26.511613Z",
"parts": [
{
"content_type": "text",
You can’t perform that action at this time.