Swift program for getting a zoom app link from current or upcoming event in calendar.
Apple script calling the program and opening zoom.
Swift program for getting a zoom app link from current or upcoming event in calendar.
Apple script calling the program and opening zoom.
| #include <iterator> | |
| template <typename T> | |
| struct output_iterator_value { | |
| using type = void; | |
| }; | |
| template <typename Container> | |
| struct output_iterator_value<std::insert_iterator<Container>> { | |
| using type = typename Container::value_type; |
| #ifndef _UTIL_DEMANGLE_HPP_ | |
| #define _UTIL_DEMANGLE_HPP_ | |
| #include <cxxabi.h> | |
| #include <string> | |
| namespace util { | |
| /** | |
| * Usage: |
| template < typename T > | |
| class has_FUNCTION_NAME_function { | |
| template < typename U = T > | |
| static ::std::true_type test(decltype(FUNCTION_NAME(::std::declval<T>()), void())*); | |
| static ::std::false_type test(...); | |
| public: | |
| using type = decltype(test(nullptr)); | |
| static constexpr bool value = type::value; | |
| }; |
| namespace detail { | |
| template <typename T> | |
| struct has_call_operator { | |
| private: | |
| struct _fallback { void operator()(); }; | |
| struct _derived : T, _fallback {}; | |
| template<typename U, U> struct _check; |
| template < typename T > | |
| class has_output_operator { | |
| template < typename U > | |
| using helper = decltype( ::std::declval<::std::ostream&>() << ::std::declval<U>(), void() ); | |
| template < typename U = T> | |
| static ::std::true_type test(helper<U>*); | |
| static ::std::false_type test(...); | |
| public: | |
| using type = decltype(test(nullptr)); |
| create or replace function bigint_to_inet (intaddr bigint) returns inet | |
| as | |
| $BODY$ | |
| begin | |
| return '0.0.0.0'::inet + intaddr; | |
| end | |
| $BODY$ | |
| language plpgsql immutable strict; | |
| create cast (bigint as inet) with function bigint_to_inet(bigint); |
| /** | |
| * DOES NOT take timezones into account, just simple calculations | |
| */ | |
| namespace YourNamespace { | |
| public static class ExtensionsClassName { | |
| static readonly DateTime EPOCH = new DateTime (1970, 1, 1, 0, 0, 0); | |
| public static double UnixTime(this DateTime date) | |
| { | |
| return (date - EPOCH).TotalSeconds; |
| public static class NameItAsYouLike { | |
| public static UIViewController GetController(this UIView view) | |
| { | |
| UIResponder parent = view; | |
| while (parent != null) { | |
| parent = parent.NextResponder; | |
| if (parent is UIViewController) { | |
| return parent as UIViewController; | |
| } | |
| } |