Skip to content

Instantly share code, notes, and snippets.

(define funcaozao (s l)
(cond
(empty? l) 0
(list? (car l)) (+ (count s (car l)) (funcaozao s (cdr l)))
else (+ 1 (funcaozao s (cdr l)))))
(define count (s l)
(cond
(empty? l) 0
(= (car l) s) (+ 1 (count (cdr l)))
class TeamsController
class Index
include RoomReservation::Action
def initialize(repository: TeamRepository)
@repository = repository
end
def call(params)
end
try:
import bob
except ImportError:
raise SystemExit('Could not find bob.py. Does it exist?')
import unittest
class BobTests(unittest.TestCase):
def setUp(self):
self.bob = bob.Bob()
void Mesh::delete_selected_vertex()
{
if (!verts[vertex_selected].is_deletable())
return;
vector<int> new_face_vertex;
vector<Face*> deleted_faces;
for (int i = 0; i < groups.size(); i++)
{
@fuadsaud
fuadsaud / Eggplant Parm.terminal
Created May 24, 2013 00:30
Eggplantz for Terminalz.appz
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ANSIBlueColor</key>
<data>
YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPEBAw
Ljk2ODYyNzQ1MSAxIDAAEAGAAtIQERITWiRjbGFzc25hbWVYJGNsYXNzZXNXTlNDb2xv
cqISFFhOU09iamVjdF8QD05TS2V5ZWRBcmNoaXZlctEXGFRyb290gAEIERojLTI3O0FI
@fuadsaud
fuadsaud / gemspec
Last active December 16, 2015 11:39 — forked from defunkt/gemspec
#!/usr/bin/env ruby
# encoding: utf-8
#
# Usage: gemspec [-s] GEMNAME
#
# Prints a basic gemspec for GEMNAME based on your git-config info.
# If -s is passed, saves it as a GEMNAME.gemspec in the current
# directory. Otherwise prints to standard output.
#
# Once you check this gemspec into your project, releasing a new gem