This file contains 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
export default createContainer((params) => { | |
Meteor.subscribe('events'); | |
const eventlist = Events.find({}, { | |
sort: { | |
start_time: 1 | |
} | |
}).fetch().filter(event => { | |
let location = params.location; | |
let timediff = Date.parse(event.start_time) - Date.now(); | |
return (location === undefined) || location === event.location) && timediff > -(6 * 60 * 60 * 1000) && timediff < 90 * 24 * 60 * 60 * 1000}); |
This file contains 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
gyp ERR! configure error | |
gyp ERR! stack Error: Can't find Python executable "C:\Users\jwagner\AppData\Local\. | |
mt-os.windows.x86_32\dev_bundle\python\python.exe", you can set the PYTHON env varia | |
gyp ERR! stack at failNoPython (C:\Users\jwagner\AppData\Local\.meteor\packages\ | |
6_32\dev_bundle\lib\node_modules\npm\node_modules\node-gyp\lib\configure.js:449:14) | |
gyp ERR! stack at C:\Users\jwagner\AppData\Local\.meteor\packages\meteor-tool\1. | |
e\lib\node_modules\npm\node_modules\node-gyp\lib\configure.js:404:11 | |
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:82:15) | |
gyp ERR! System Windows_NT 10.0.10240 | |
gyp ERR! command "C:\\Users\\jwagner\\AppData\\Local\\.meteor\\packages\\meteor-tool |
This file contains 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
import React, {Component, PropTypes} from 'react' | |
import MainPage from './MainPage' | |
import ClubOverview from './ClubOverview' | |
import Board from './Board' | |
import {Page, Navigator, Tabbar, Tab} from 'react-onsenui' | |
require('moment/locale/de') | |
class Tabs extends Component { | |
constructor (props) { | |
super(props) |
This file contains 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
<VirtualHost *:80> | |
ServerName igbot.lifestyle.cool | |
ServerAlias igbot.lifestyle.cool | |
DocumentRoot /var/www/html/igbot_saas/public | |
DirectoryIndex /index.php | |
<Directory /var/www/html/igbot_saas/public> | |
AllowOverride None | |
Order Allow,Deny |
This file contains 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
$form = $this->createFormBuilder() | |
->add('username', TextType::class) | |
->add('password', TextType::class) | |
->add('save', SubmitType::class, ['label' => 'Add Account']) | |
->getForm(); | |
$twoFactorform = $this->createFormBuilder() | |
->add('Code', TextType::class) | |
->getForm(); |
This file contains 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
class Example { | |
private $date = date('Y-m-d H-i-s', time()); | |
function exampleFunc() { | |
$newDate = $this->date; | |
echo $newDate | |
} | |
} |
This file contains 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
<?php | |
namespace App\Model; | |
class igUserInfoModel { | |
public $username; | |
public $status; | |
public $following_count; | |
public $follower_count; | |
public $media_count; | |
public $storiesWatched; |
This file contains 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
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { | |
IQKeyboardManager.shared.enable = true | |
IQKeyboardManager.shared.enableAutoToolbar = false | |
FirebaseApp.configure() | |
Messaging.messaging().delegate = self | |
UNUserNotificationCenter.current().delegate = self | |
let authOptions: UNAuthorizationOptions = [.alert, .badge, .sound] | |
UNUserNotificationCenter.current().requestAuthorization(options: authOptions,completionHandler: {_, _ in }) |
This file contains 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
if users.count > 0 { | |
if friendAttendees.count > 0 { | |
attendeesString.append(getYouOrFriendString(uid: friendAttendees[0].uid!, userName: friendAttendees[0].name)) | |
} | |
if friendAttendees.count > 1 { | |
attendeesString.append(getYouOrFriendString(uid: friendAttendees[1].uid!, userName: friendAttendees[1].name)) | |
} | |
if strangerAttendeeCount > 0 { |
OlderNewer