Skip to content

Instantly share code, notes, and snippets.

View jeremytregunna's full-sized avatar

Jeremy Tregunna jeremytregunna

View GitHub Profile
<student> Yes I am
<ZipCPU> You asked a question on ##verilog some time ago, and then left before I noticed and answered the question.
<ZipCPU> I wanted to make certain you were on line before I commented on any of your issues.
<ZipCPU> Further, because the ##fpga discussion is struggling to handle about 3 topics at once, I thought it might be simpler to leave the discussion channel.
<student> Yea that's right, I left before receiving any answers, I waited a lot but none answered.
<ZipCPU> You were asking some fascinating questions on ##fpga.
<ZipCPU> May I try my hand at answering any of them?
<student> Yea sure, I would be too thankful for that as I'm starting my way in digital design and I have multiple issues that I didn't find answer on edaboard forums, and IRC as well!
<ZipCPU> So ... I started digital design in earnest almost two years ago. In many ways, I'm a newbie. On the other hand, I do have a graduate degree in computer engineering, so ... I might know a thing or two ...
<ZipCPU> At one time,
@jeremytregunna
jeremytregunna / symbolizing_osx_crash_logs.md
Created January 7, 2017 04:21 — forked from bmatcuk/symbolizing_osx_crash_logs.md
How to symbolize OSX crash logs

How to Symbolize OSX Crash Logs

Unfortunately, xcode does not yet have support for importing OSX crash logs and symbolizing them. Therefore, you must use the command line and a little bit of manual work.

  1. Find your dSYM file.
    1. Assuming you are using xcode's archive functionality, open the Organizer window from the Window menu.
    2. Click the Archives tab.
    3. Right click on the appropriate build and select Show in Finder.
    4. When Finder opens, right click on the selected archive and select Show Package Contents.
    5. Navigate to the dSYM directory and copy the appropriate dSYM file to a temporary directory.
  2. Then navigate to Products, then Applications, and copy the app file to the same temporary directory.
@implentation UserForm
- (SurveyTextField *)username
{
return SurveyDefineTextField(^(SurveyTextField *field) {
field.placeholder = @"username";
});
}
// OR
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
UITableViewCell *cell = [self.tableView dequeueReusableCellWithIdentifier:@"Cell"];
NSLog(@"count prieteni: %lu",(unsigned long)[prieteni_user count]);
NSLog(@"prieteni useri: %@",prieteni_user);
NSLog(@"temp: %@",temp);
cell.textLabel.text = [foo objectAtIndex:indexPath.row];
return cell;
#import "EmailShareType.h"
@implementation EmailShareType
{
UIViewController *pvController;
MFMailComposeViewController *mailComposeController;
}
- (void)share:(UIViewController *)parentViewController
{
//
// ServerViewController.m
// HungerCraft
//
// Created by Anthony Vella on 5/31/12.
// Copyright (c) 2012 Aurora High School. All rights reserved.
//
#import "ServerViewController.h"
#import "DetailsViewController.h"
+ (Foo*)foo
{
static dispatch_once_t pred;
static Foo* shared = nil;
dispatch_once(&pred, ^{
shared = [[Foo alloc] init];
});
return shared;
}
@jeremytregunna
jeremytregunna / contrived.io
Created April 15, 2012 21:16 — forked from juster/contrived.io
Contrived example of my problem dynamically creating methods
words := list("foo", "bar")
createMethodsFromListInContext := method(lst, ctx,
if(ctx isNil, ctx = call sender)
lst foreach(w,
ctx setSlot(w, method(w println))
)
)
Foo := Object clone