#define Inches2Feet( i )(i*OneTwelfth)// 1/12
#define Inches2Yards( i )(i*OneThirtysixth)// 1/36
#define Inches2Miles( i )(i*One63360th)// 1/63360.0
#define Inches2MM( i )(i*25.4)
#define Inches2CM( i )(i*2.54)
#define Inches2Meters( i )(i*.0254)
#define Inches2KM( i )(i*.0000254)
#define Feet2Inches( f )(f*12.0)
#define Feet2Yards( f )(f*OneThird)// 1/3
#define Feet2Miles( f )(f*One5280th)// 1/5280
#define Feet2MM( f )(f*304.8)
#define Feet2CM( f )(f*30.48)
#define Feet2Meters( f )(f*0.3048)
#define Feet2KM( f )(f*0.0003048)
#define Yards2Inches( y )(y*36.0)
#define Yards2Feet( y )(y*3.0)
#define Yards2Miles( y )(y*One1760th)// 1/1760.0
#define Yards2MM( y )(y*914.4)
#define Yards2CM( y )(y*91.44)
#define Yards2Meters( y )(y*.9144)
#define Yards2KM( y )(y*.0009144)
#define Miles2Inches( mi )(mi*63360.0)
#define Miles2Feet( mi )(mi*5280)
#define Miles2Yards( mi )(mi*1760.0)
#define Miles2MM( mi )(mi*1609344.0)
#define Miles2CM( mi )(mi*160934.4)
#define Miles2Meters( mi )(mi*1609.344)
#define Miles2KM( mi )(mi*1.609344)
#define MM2CM( mm )(mm*.1)
#define MM2Meters( mm )(mm*.001)
#define MM2KM( mm )(mm*.000001)
#define MM2Inches( mm )(mm*One25Pt4th)// 0.0393700787401575
#define MM2Feet( mm )(mm*One304Pt8th)// 0.00328083989501312
#define MM2Yards( mm )(mm*One914Pt4th)// 0.00109361329833771
#define MM2Miles( mm )(mm*One1609344th)// 0.000000621371192237334
#define CM2MM( cm )(cm*10.0)
#define CM2Meters( cm )(cm*.01)
#define CM2KM( cm )(cm*.00001)
#define CM2Inches( cm )(cm*One2Pt54th)// 0.393700787401575
#define CM2Feet( cm )(cm*One30Pt48th)// 0.0328083989501312
#define CM2Yards( cm )(cm*One91Pt44th)// 0.0109361329833771
#define CM2Miles( cm )(cm*One160934Pt4th)// 0.00000621371192237334
#define Meters2MM( m )(m*1000.0)
#define Meters2CM( m )(m*100.0)
#define Meters2KM( m )(m*.001)
#define Meters2Inches( m )(m*OnePt0254th)// 39.3700787401575
#define Meters2Feet( m )(m*OnePt3048th)// 3.28083989501312
#define Meters2Yards( m )(m*OnePt9144th)// 1.09361329833771
#define Meters2Miles( m )(m*One1609Pt344th)// 0.000621371192237334
#define KM2Meters( km )(km*1000.0)
#define KM2CM( km )(km*100000.0)
#define KM2MM( km )(km*1000000.0)
#define KM2Inches( km )(km*OnePt0000254th)// 39370.0787401575
#define KM2Feet( km )(km*OnePt0003048th)// 3280.83989501312
#define KM2Yards( km )(km*OnePt0009144th)// 1093.61329833771
#define KM2Miles( km )(km*One1Pt609344th)// 0.621371192237334
I had a very destructive relationship with this bad guy about five years ago . He was two years younger than me, he’s good looking, tall, and talented. He was also a student journalist like me when we met. There was no formal courtship between us and what we had was a whirlwind romance. Three months we’re okay and the relationship was blissful especially for me…well, I thought I was a wall flower and it was a boon for someone like me to get noticed by someone like him…so I thought. But the magic worn off in the preceding months. He tormented me through verbal abuse, he tried to change my outfits, my make up, my hair cut, and almost everything about me. He thought at times I was ugly because I had full lips… he was always surrounded by younger and prettier women. And to my misery these women always try to pursue him, seduce him, touch him in front of me…and one time caught him with his so-called female best friend after their movie date. While there was I, thinking he attended a rehearsal for a dance to be presented in his physical education class…I was fooled. That was truly devastating for me. My self esteem crumbled, I was so insecure…he always tell me how possessive and jealous I have become, that I am a people-pleaser.well, I became one. He literally never greeted me during my birthday and never showed up because he was mad at me. Instead he told me, we’re better off as friends and later, popped the statement he wanted out because he no longer love me. I begged off not win him back I was tired of hurting I just want to know what happened, I was literally on my feet because I wanted to know why. But just like that he dumped, just like that, that easy. My heart, my soul, and my spirit were all crushed that I wanted to die.
However, studies and career wise, the break up proved beneficial on my part . Everything went by smoothly in these two aspects.But when night time comes and I’m left with myself struggling and dying inside. I started to rebel to be bitter,I became a player myself and worse had two sexual relations with two guys…that was five years of confusion, grief,and hopelessness. Until another inopportune event came, the death of my best friend. It had been God’s wake up call to me because my best friend committed suicide because of her “bad boy” ex boyfriend. That guy pushed her to kill herself, asked her to literally hang herself to prove how much she loves him (she was then on the verge of an emotional and mental breakdown and did it). I was grief stricken, what happened lead me to learn about my self destruction and what I have done these past few years. I realized I don’t have to reach that point no matter how distressed and depressed I was. It was in a way an eye opener too that I still have the chance to get my self together. I left who I was “playing fire” with at that time and tried to see thing through, salvage whatever hope I had at my disposal to make up for what I did to myself…gradually I started to pray again and attend church as often as I can.I sought professional help to therapist friends too.I took my job seriously and learned to love it. I enrolled at my Alma mater and pursued a graduate school course. and now,in a year, am about to embark on my thesis and finish soon.I wrote articles, poetry,sketched pictures again. I contacted my old friends whom I forgot throughout my ordeal and my depression.I apologized to people I hurt, reconnect with my family especially my mom and made peace with myself. I know that I can’t reverse what I did to my life, and there are times I slip…there are also setbacks towards my desire for change but I continue to fight to achieve it. life must go on, all I can do is to treat my self better, the ones I love, and other people.I try to live the life and the things that which my friend missed and won’t be able to do anymore. I condition my mind and my heart that there is always something to look forward to everyday, something that would make life worthwhile and happy. I’m still single as of now, I met him (the bad guy) recently, and he said sorry and he still has feelings for me. It’s okay though, but I won’t run after him anymore because I am now aware that I am not anybody’s doormat, not his rag. Love might just be there waiting in the wings and I believe I am fated by God to be with a man who would love me for me. He just haven’t come yet but I’m willing to wait.
Name:
Anonymous2011-04-21 3:53
:D
rofl!
isn't that a riot!!???? Just found that on a Jesus Freex site. Make it a meme. Skim it maybe it already is-- Meh.. :P
>>19
Sorry. Forgot that sepples macros're textual.
Name:
Anonymous2011-04-21 7:09
>>20
You still copypaste tons of define/convm, while in Common Lisp it's easy to define list-processing macro
(w/conv
feet inches 12
yards inches 36
yards feet 3
miles inches 63360
miles yards 1760
miles feet 5280)
(define-syntax (define/meters stx)
(syntax-case stx ()
((_ n b)
(let* ((bb (inexact->exact (syntax->datum #'b))) (bb/10 (/ bb 10)) (bb/1000 (/ bb 1000)) (bb/1e6 (/ bb 1000000)))
#`(begin (define/conv n millimeters #,bb)
(define/conv n centimeters #,bb/10)
(define/conv n meters #,bb/1000)
(define/conv n kilometers #,bb/1e6))))))
(define-syntax-rule (define-inlines (n x . b) ...)
(begin (define-inline (n . x) . b) ...))
(define-syntax-rule (define/mults (n y) ...)
(define-inlines (n (x) (* x y)) ...))
(define-syntax-rule (define/meters* (n b) ...)
(begin (define/meters n b) ...))
(define-syntax-rule (define/convs (n m x) ...)
(begin (define/conv n m x) ...))
>>27
Macro itself, quite possibly.
Actual unit listing? No, one unit definition per line (or s-exp).
I'd have to go dig through my old code for the exact implementation, but it wasn't anything too special, just your usual CL macro.