Skip to content

Instantly share code, notes, and snippets.

View chrisciampoli's full-sized avatar

Christopher Ciampoli chrisciampoli

View GitHub Profile
@chrisciampoli
chrisciampoli / setup_selenium.sh
Created October 20, 2015 23:38 — forked from curtismcmullan/setup_selenium.sh
Setup Selenium Server on Ubuntu 14.04
#!/bin/bash
# Following the guide found at this page
# http://programmingarehard.com/2014/03/17/behat-and-selenium-in-vagrant.html
echo "\r\nUpdating system ...\r\n"
sudo apt-get update
# Create folder to place selenium in
java -jar selenium-server-standalone-2.48.2.jar -Dwebdriver.chrome.driver=~/Downads/chromedriver

Retainer Contract for SOFA


Between myself: Christopher Ciampoli

and you: The Society for Financial Awareness

Summary:

I’ll always do my best to fulfill your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. I’ve no desire to trick you into signing something that you might later regret. What I do want is what’s best for both parties, now and in the future.

@chrisciampoli
chrisciampoli / setup.txt
Created January 19, 2016 00:25
Pelican Setup
1) unzip package to project folder
2) virtualenv .
3) source bin/activate
4) pip install pelican markdown
5) cd src
6) git clone https://github.com/getpelican/pelican-plugins.git
7) Add PLUGIN_PATHS = ['pelican-plugins'] and PLUGINS = ['assets'] to pelicanconf.py
8) cd ..
9) cd theme
10) ./setup.sh
Requirements
Installable on both iOS and Android
Shopping Cart
Reminders
CMS page for wordpress to push out messages to app
Social signon
Link to write review
@chrisciampoli
chrisciampoli / test.php
Created March 8, 2016 00:22
array_map vs foreach testing PHP
1
down vote
It's interesting. But I've got an opposite result with the following codes which are simplified from my current projects:
// test a simple array_map in the real world.
function test_array_map($data){
return array_map(function($row){
return array(
'productId' => $row['id'] + 1,
Clock Angle Problem
BY SJ · FEBRUARY 20, 2015
Objec­tive: Find the Angle between hour hand and minute hand at the given time.
Exam­ple:
Time : 12:45
Input : hour = 12, Minute = 45
Output : 112.5
RecipesData = {
"chilis-chicken-taco": {
"title": "Chilis Chicken Tacos",
"highlighted": true,
"excerpt": "When I’ve got too many cheese bits on hand, it's now fromage fort to the rescue",
"source": {
"name": "Chilis",
"url": "http://chilis.com/"
},
"average preperation time": "15 min",
@chrisciampoli
chrisciampoli / complex-curl.sh
Created October 12, 2016 22:28
Querying elasticsearch with Elastica
#!/bin/bash
curl -XPOST 'http://localhost:9200/blog/posts/_search' -d '{
"query": {
"filtered": {
"query": {
"query_string": {
"query":"php zend framework",
"default_operator": "OR",
"fields": ["title", "content"]
}
@chrisciampoli
chrisciampoli / starship.toml
Created October 24, 2019 19:15 — forked from ryo-ARAKI/starship.toml
Starship configuration file
# ~/.config/starship.toml
[character]
use_symbol_for_status = true # Show "✖" when the command faild
[hostname]
ssh_only = false
prefix = "❮ "
suffix = "❯"
style = "bold dimmed white"