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 UIKit | |
import MobileCoreServices | |
import SwiftUI | |
class ActionViewController: UIViewController { | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
// Get the item[s] we're handling from the extension context. |
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
alias bump_migration='rename -i -v "s/(\d{14})/$(date +'%Y%m%d%H%M%S')/" $1' |
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
<div class="g-signin2 signup-button" data-onsuccess="onSignIn" data-theme="dark" data-longtitle="true" data-width="250" data-height="50"> | |
</div> |
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
console.log("hello vue") | |
const Vue = require("vue") | |
// const renderVue = require("hypernova-vue").renderVue // this throws an error. | |
const renderVue = require("hypernova-vue/server").renderVue | |
const MyComponentX = Vue.extend({ | |
template: '<h1>hello world</h1>' | |
}) |
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 interface StringTMap<T> { [key: string]: T; }; | |
export interface NumberTMap<T> { [key: number]: T; }; | |
export interface StringAnyMap extends StringTMap<any> {}; | |
export interface NumberAnyMap extends NumberTMap<any> {}; | |
export interface StringStringMap extends StringTMap<string> {}; | |
export interface NumberStringMap extends NumberTMap<string> {}; | |
export interface StringNumberMap extends StringTMap<number> {}; |
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 Vue from 'vue' | |
let handleWindowResize | |
export function moveFromWindowLeft(el, binding) { | |
const showElement = binding.value | |
if (!showElement) { |
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
// imported from | |
// https://medium.com/@Taha_Shashtari/an-easy-way-to-detect-clicks-outside-an-element-in-vue-1b51d43ff634 | |
import Vue from 'vue' | |
// This variable will hold the reference to | |
// document's click handler | |
let handleOutsideClick | |
Vue.directive('closable', { | |
bind (el, binding, vnode) { |
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
/* | |
Package main - transpiled by c2go version: v0.25.9 Dubnium 2018-12-30 | |
If you have found any issues, please raise an issue at: | |
https://github.com/elliotchance/c2go/ | |
*/ | |
// Warning (FieldDecl): /usr/include/_stdio.h:137 : Cannot resolve type 'int ( * _Nullable)(void *)' : Cannot separate function 'int ( * _Nullable)(void *)' : Cannot resolve type 'int ( * _Nullable)' : Cannot separate function 'int ( * _Nullable)' : Cannot resolve type '* _Nullable' : I couldn't find an appropriate Go type for the C type '* _Nullable'. | |
// Warning (FieldDecl): /usr/include/_stdio.h:138 : Cannot resolve type 'int ( * _Nullable)(void *, char *, int)' : Cannot separate function 'int ( * _Nullable)(void *, char *, int)' : Cannot resolve type 'int ( * _Nullable)' : Cannot separate function 'int ( * _Nullable)' : Cannot resolve type '* _Nullable' : I couldn't find an appropriate Go type for the C type '* _Nullable'. | |
// Warning (FieldDecl): /usr/include/_stdio.h:139 : Cannot resolve type 'fpos_t ( * _Nullable)(void *, fpos_t, |
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
# Brute force NYT set Solver. | |
# from https://www.nytimes.com/puzzles/set - Accessed Jan 6 | |
require 'set' | |
class Item | |
include Comparable | |
attr_accessor :color, :shape, :pattern, :item_count |
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
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; |
NewerOlder