Skip to content

Instantly share code, notes, and snippets.

View chintanparikh's full-sized avatar
🎯
Focusing

Chintan Parikh chintanparikh

🎯
Focusing
View GitHub Profile
#include <stdio.h>
#include <stdlib.h>
#define swap_bytes(first, second) char* temp = malloc(sizeof(char)); *temp = *(char*)first; *(char*)first = *(char*)second; *(char*)second = *temp; free(temp);
int main()
{
char a = 'a';
char b = 'b';
printf("%c, %c\n", a, b);
#include "my_malloc.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <stdarg.h>
#define KRED "\x1B[31m"
#define KGRN "\x1B[32m"
#define KNRM "\x1B[0m"
#include "my_malloc.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <stdarg.h>
// Chintan Parikh
extern metadata_t* freelist[8];
def create
errors = []
@user = User.find(params[:user_id])
if @user.nil?
errors << "User not found"
end
@stock = Stock.find_by_ticker(params[:ticker])
if @stock.nil?
@stock = Stock.new(ticker: params[:ticker])
#Unispon
Last week - Business plans. Design documentations.
Next step - Get in touch with business people, marketing.
Next week - More on development. Give campus orbs the capability to add packages. Emails, meetings, phone calls to companies. Find companies who already sponsor and meet HR people, etc.
Roadblocks - people responding
week 2
last week: prepared for mentors, marketing: contacting clubs, slumberJ (cancelled).
didn't do Design documents (technical specs): how about
<div class="container" style="padding-top:30px">
<div class="row">
<div class="col-lg-4">
</div>
<div class="col-lg-4">
<div class="well">
<button type="button" class="btn btn-primary btn-lg btn-block">View Cart</button>
</div>
</div>
<div class="row" align="center">
<div class="col-sm-6 col-md-3">
<div class="thumbnail">
<img data-src="holder.js/300x200" alt="300x200" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAADICAYAAABS39xVAAAL60lEQVR4Xu3bCY8UVRcG4EI0ils0BIi7iQgiIhqNmrj9dnfiAlHQgAoqGOMScd8XvpxKqtP2NyNTyBvmwHMTA87UnD793MubW7drtpw9e/bcYBAgQKCBwBaB1WCWtEiAwCggsCwEAgTaCAisNlOlUQIEBJY1QIBAGwGB1WaqNEqAgMCyBggQaCMgsNpMlUYJEBBY1gABAm0EBFabqdIoAQICyxogQKCNgMBqM1UaJUBAYFkDBAi0ERBYbaZKowQICCxrgACBNgICq81UaZQAAYFlDRAg0EZAYLWZKo0SICCwrAECBNoICKw2U6VRAgQEljVAgEAbAYHVZqo0SoCAwLIGCBBoIyCw2kyVRgkQEFjWAAECbQQEVpup0igBAgLLGiBAoI2AwGozVRolQEBgWQMECLQREFhtpkqjBAgILGuAAIE2AgKrzVRplAABgWUNECDQRkBgtZkqjRIgILCsAQIE2ggIrDZTpVECBASWNUCAQBsBgdVmqjRKgIDAsgYIEGgjILDaTJVGCRAQWNYAAQJtBARWm6nSKAECAssaIECgjYDAajNVGiVAQGBZAwQItBEQWG2mSqMECAgsa4AAgTYCAqvNVGmUAAGBZQ0QINBGQGC1mSqNEiAgsKwBAgTaCAisNlOlUQIEBJY1QIBAGwGB1WaqNEqAgMCyBggQaCMgsNpMlUYJEBBY1gABAm0EBFabqdIoAQICyxogQKCNgMBqM1UaJUBAYFkDBAi0ERBYbaZKowQICCxrgACBNgICq81UaZQ
@chintanparikh
chintanparikh / gist:6657447
Created September 22, 2013 07:04
blog post
<div class="container">
<div class="row">
<div class="col-lg-3">
<h2>First blog post</h2>
<p class="lead">09/21/2013</p>
</div>
<div class="col-lg-9" style="padding-top:20px">
<div class="media">
<a class="pull-left" href="#">
<div class="starter-template">
<h1>Bootstrap starter template</h1>
<hr>
</div>
@chintanparikh
chintanparikh / gist:6657440
Created September 22, 2013 07:02
contact form
<div class="container">
<div class="row">
<div class="col-lg-4">
</div>
<div class="col-lg-4" align="center">