Skip to content

Instantly share code, notes, and snippets.

View NimaBoscarino's full-sized avatar
📚
Not coding much, busy with school

Nima Boscarino NimaBoscarino

📚
Not coding much, busy with school
View GitHub Profile
@NimaBoscarino
NimaBoscarino / Avatar Maker
Created August 7, 2014 04:05
Avatar Maker
import java.awt.Color;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.util.Scanner;
import javax.imageio.ImageIO;
public class avatar {
static int charSum = 0;
public static void main(String[] args) throws IOException {
-------------------
| Nima's Movies |
-------------------
- Inside Llewin Davis
- The Big Lebowski
- No Country For Old Men
- Barton Fink
- 2001: A Space Odyssey
- There Will Be Blood
----------------
| Movies Nima |
| Should Watch |
| or Finish |
----------------
- A Serious Man
- Blue is the Warmest Color
- Lawrence of Arabia
- The Abyss
//
// LinkedList.cpp
// Assignment2
//
// Created by Nima Boscarino on 2014-09-29.
// Copyright (c) 2014 NimaBoscarino. All rights reserved.
//
#ifdef __Assignment2__LinkedList__
Cool books from when I was a kid:
=================================
- Wayside School (series)
- Holes (and the sequel too!)
- Silverwing (Saga)
- Wind on Fire series
- Gregor the Overlander (series)
- Claidi (series)
import sys
# input is just command line: R S T L
# e.g. 1 2 0 1 == 1 R, 2 S, 0 T, 1 L
# easy!
result = "no"
done = 0
minoes = sys.argv[1:]
# we're going to be unintelligent and hard-code the cases!
var https = require('https')
exports.handler = (event, context) => {
try {
if (event.session.new) {
// New Session
console.log("NEW SESSION")
}
var obj = {
fo1 : 5,
fo2 : 3,
fo3 : 10,
fo4 : 3,
fo5 : 4,
fo6 : 4,
}
function getMax(object) {
@NimaBoscarino
NimaBoscarino / Gemfile
Created May 23, 2018 06:29
W7D2 Ruby Lecture
source 'https://rubygems.org'
gem 'sqlite3'
gem 'activerecord'
gem 'activesupport'
require_relative 'app_config'
require_relative 'models/genre'
require_relative 'models/track'
AppConfig.establish_connection
genres = Genre.where(name: 'Rock')
song = Track.new name: "Genreless Song" # Our Track model says we need to have a genre, so we won't be able to save this.
puts song.save # returns false, since the save failed