This file contains hidden or 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
var sketch = require('sketch/dom'); | |
var document = sketch.getSelectedDocument(); | |
var selection = document.selectedLayers; | |
selection.forEach(layer => { | |
layer.style.borderOptions.endArrowhead = 'OpenArrow' | |
}); |
This file contains hidden or 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
var sketch = require('sketch/dom'); | |
var UI = require('sketch/ui'); | |
var document = sketch.getSelectedDocument(); | |
var page = document.selectedPage; | |
var message; | |
var symbol_count = 0; | |
function countSymbols(layer) { |
This file contains hidden or 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 'dart:async'; | |
import 'dart:io'; | |
import 'dart:math'; | |
import 'package:firebase_analytics/firebase_analytics.dart'; | |
import 'package:firebase_auth/firebase_auth.dart'; | |
import 'package:firebase_database/firebase_database.dart'; | |
import 'package:firebase_database/ui/firebase_animated_list.dart'; | |
import 'package:firebase_storage/firebase_storage.dart'; |
This file contains hidden or 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
/* Thanks to sample code here: | |
https://github.com/wodory/flowmate | |
https://github.com/turbobabr/Sketch-Plugins-Cookbook | |
*/ | |
var selection = context.selection; | |
var layer = selection.firstObject(); | |
if(layer && layer.isKindOfClass(MSShapeGroup)) { |
This file contains hidden or 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
(in-package #:cl-advent-2016) | |
(defparameter *keypad* nil) | |
(defparameter *key* 5) | |
(defun key-position () | |
(mapcar (lambda (row) (position *key* row)) *keypad*)) | |
(defun row-index () |
This file contains hidden or 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
(defun org-mobile-push-on-save () | |
"Used in `after-save-hook'." | |
(when (memq this-command '(save-buffer save-some-buffers)) | |
(org-mobile-push))) | |
(add-hook 'org-mode-hook | |
(lambda () | |
(add-hook 'after-save-hook 'org-mobile-push-on-save nil 'make-local))) |
This file contains hidden or 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
<%= stylesheet_link_tag "application" %> | |
<%= javascript_include_tag "https://js.stripe.com/v1/", "application" %> | |
<%= javascript_include_tag "application" %> | |
<%= csrf_meta_tags %> | |
<%= tag :meta, :name => "stripe-key", :content => STRIPE_PUBLIC_KEY %> |
This file contains hidden or 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
(defmethod render :around ((form form-component)) | |
(<:form :method "post" | |
:action "mailto:[email protected]" | |
(call-next-method))) | |
(defmethod render :before ((form form-component)) | |
(<:h1 (<:as-html "Book Order Form"))) | |
(defmethod render ((form form-component)) | |
(<:as-html "Name: ") (<:text :name "Name") (<:br) |
This file contains hidden or 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
"Same semantics as standard method combination but allows | |
\"wrapping\" methods. Ordering of methods: | |
(wrap-around | |
(around | |
(before) | |
(wrapping | |
(primary)) | |
(after))) |
This file contains hidden or 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
(defentry-point "index.ucw" | |
(:application *orders-ucw-application* | |
:with-call/cc nil) | |
() | |
(render (make-instance 'order-window))) |
NewerOlder