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
// | |
// ViewController.m | |
// AnchorPointTest | |
// | |
// Created by gadmyth on 7/10/17. | |
// Copyright © 2017 gadmyth. All rights reserved. | |
// | |
#import "ViewController.h" |
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
// | |
// ViewController.m | |
// AnchorPointTest | |
// | |
// Created by gadmyth on 7/10/17. | |
// Copyright © 2017 39sports. All rights reserved. | |
// | |
#import "ViewController.h" |
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 <Foundation/Foundation.h> | |
struct __block_impl; | |
struct __block_impl_0; | |
struct __Block_byref_happy_0 { | |
void *__isa; | |
__Block_byref_happy_0 *__forwarding; | |
int __flags; | |
int __size; |
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 <Foundation/Foundation.h> | |
struct __block_impl; | |
struct __block_impl_0; | |
struct __block_impl { | |
void *isa; | |
int Flags; | |
int Reserved; | |
void (*FuncPtr)(__block_impl_0 *); |
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
public class TestActivity extends Activity { | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
Log.i("TestActivity", "onCreate"); | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_test); | |
TextView view = (TextView) findViewById(R.id.test_size); | |
int size = getResources().getDimensionPixelSize(R.dimen.test_text_size); |
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
(require 'ov) | |
(defun ov-double-height () | |
(interactive) | |
(ov (point-min) (point-max) '(face (:height 1.25)))) | |
(defun ov-half-height () | |
(interactive) | |
(ov (point-min) (point-max) '(face (:height 0.8)))) | |
(defun ov-reset-height () | |
(interactive) | |
(ov-clear)) |
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 pairs (x) | |
(labels ((pair-from-list (lst cum) | |
(let ((a (car lst)) (b (cadr lst)) (new-lst (cddr lst))) | |
(if (or (null a) (null b)) | |
(reverse cum) | |
(progn | |
(pair-from-list new-lst (pushnew `(,a . ,b) cum))))))) | |
(pair-from-list x nil))) |