Skip to content

Instantly share code, notes, and snippets.

View MarcelWeidum's full-sized avatar
🔥
Lit

Marcel MarcelWeidum

🔥
Lit
View GitHub Profile
@MarcelWeidum
MarcelWeidum / employees.php
Created September 8, 2021 12:15
Get employees
<?php
public function employees()
{
// Init client
$mplusqapiclient = new Mplusqapiclient();
$mplusqapiclient->setApiServer(env('MPLUS_URL'));
$mplusqapiclient->setApiPort(env('MPLUS_PORT'));
$mplusqapiclient->setApiIdent(env('MPLUS_IDENT'));
$mplusqapiclient->setApiSecret(env('MPLUS_SECRET'));
$('.single-content').hide();
$(document).ready(function() {
var slide_time = 500;
$(".blocks-container .block").click(function() {
console.log($(this).index());
var slide_status = $(this).parent().children().last().attr("slide-status");
if(slide_status == "closed") {
@MarcelWeidum
MarcelWeidum / CustomCell.swift
Created April 11, 2017 10:37
Expanding cell
import UIKit
class NewSongExpandableTableViewCell: UITableViewCell {
@IBOutlet var firstView: UIView!
@IBOutlet var secondView: UIView!
@IBOutlet var heightConstraintSecondView: NSLayoutConstraint!