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
@dimovdaniel
dimovdaniel / delete.sql
Created May 12, 2020
Delete demo data from FoodTiger
View delete.sql
DELETE from order_has_status where order_id<601;
DELETE from orders where id<601;
DELETE FROM address where id<6;
DELETE FROM items where id<256;
DELETE FROM categories where id<52;
DELETE FROM hours where restorant_id<13;
DELETE FROM model_has_roles where model_id<6 and model_id>1;
DELETE FROM restorants where id<13;
DELETE FROM users where id<6 and id>1;
View modified.css
/*! =========================================================
*
Material Dashboard PRO - V1.1.0
*
* =========================================================
*
* Copyright 2016 Creative timr (http://www.creative-tim.com/product/material-dashboard-pro)
*
* _oo0oo_
* o8888888o
View gist:4a042a251a3e239f92ad5444b3924cb9
<table>
<tr>
<td><a href="https://help.mobidonia.com/#reactappbuilder" rel="nofollow"><img src="http://mobidonia.com/apis/proxy/timthumb_protected.php?q=100&src=https://firebasestorage.googleapis.com/v0/b/universalapp-a272a.appspot.com/o/1538605535578.jpg?alt=media&#38;token=b4ba7275-5b92-467b-a882-3f0a0b127e87" alt="media&#38;token=b4ba7275-5b92-467b-a882-3f0a0b127e87\" /></a></td>
<td><a href="https://mobidonia.gitbook.io/react-app-builder/" rel="nofollow"><img src="http://mobidonia.com/apis/proxy/timthumb_protected.php?q=100&src=https://firebasestorage.googleapis.com/v0/b/universalapp-a272a.appspot.com/o/1538605555895.jpg?alt=media&#38;token=49acba90-9db7-4fba-b295-2091d37e9c3a" alt="media&#38;token=49acba90-9db7-4fba-b295-2091d37e9c3a\" /></a></td>
<td><a href="https://www.reactappbuilder.com/" rel="nofollow"><img src="http://mobidonia.com/apis/proxy/timthumb_protected.php?q=100&src=https://firebasestorage.googleapis.com/v0/b/universalapp-a272a.appspot.com/o/1538606609796.jpg?alt=media&#38;token=6233357
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",
You can’t perform that action at this time.