Skip to content

Instantly share code, notes, and snippets.

View BenderV's full-sized avatar
🎯
Focusing

Benjamin BenderV

🎯
Focusing
View GitHub Profile

Experimental Generation of Interpersonal Closeness

Instructions to Subjects Included With Task Slips Packet

This is a study of interpersonal closeness, and your task, which we think will be quite enjoyable, is simply to get close to your partner. We believe that the best way for you to get close to your partner is for you to share with them and for them to share with you. Of course, when we advise you about getting close to your partner, we are giving advice regarding your behavior in this demonstration only, we are not advising you about your behavior outside of this demonstration.

In order to help you get close we've arranged for the two of you to engage in a kind of sharing game. You're sharing time will be for about one hour, after which time we ask you to fill out a questionnaire concerning your experience of getting close to your partner.

You have been given three sets of slips. Each slip has a question or a task written on it. As soon as you both finish reading these instructions, you should

@BenderV
BenderV / RenderJSON.py
Created August 29, 2016 12:44
Jupyter render json
import uuid
from IPython.display import display_javascript, display_html, display, HTML
import json
from bson import json_util
# https://caldwell.github.io/renderjson/
# https://github.com/ipython-contrib/jupyter_contrib_nbextensions
# https://www.reddit.com/r/IPython/comments/34t4m7/lpt_print_json_in_collapsible_format_in_ipython/
#TODO: adapt height
@BenderV
BenderV / Spark+ipython_on_MacOS.md
Created September 9, 2016 23:39 — forked from ololobus/Spark+ipython_on_MacOS.md
Apache Spark installation + ipython notebook integration guide for Mac OS X

Apache Spark installation + ipython notebook integration guide for Mac OS X

Tested with Apache Spark 1.3.1, Python 2.7.9 and Java 1.8.0_45 + workaround for Spark 1.4.x from @enahwe.

Install Java Development Kit

Download and install it from oracle.com

@BenderV
BenderV / cheatsheet.py
Created October 17, 2016 19:36
Note on Design of Computer Program by Peter Norvig - https://in.udacity.com/course/design-of-computer-programs--cs212/
"""I didn't finish the class, and the notes are only partial and really not cleaned/organized,
but they represent at the time what I found interesting to remember.
@ben_derv
"""
?? --->understand---> problem --->specify---> design --->code
sum(**2 for x in nums)
@BenderV
BenderV / gist:44901bac756ff3b8279d018eb1e2cc1f
Created March 19, 2017 18:21
#Podcast Knowledge Project: Naval Ravikant
Just do something, doesn't matters what
Book == blog archives. Feel free to scram
We are creatures of habits (but don't condition habits with identity/ego). Have deliberate habits
Stopping alcohol
Unpack causes
- availability
- desire
Availability => Early morning sport. Force to not go out at night too much.
Desire
@BenderV
BenderV / archive-all-facebook-messages.js
Created June 9, 2017 19:58 — forked from tedmiston/archive-all-facebook-messages.js
Archive all of the messages in your Facebook Messages Inbox
function archive_all(testOnly) {
var someMessages, archiveButton;
if (testOnly === "undefined") { testOnly = false; }
someMessages = $("li._k- span.accessible_elem");
console.log("Found", someMessages.length, "messages to archive in your inbox.");
archiveButton = null;
someMessages.each(function () {
@BenderV
BenderV / urls.csv
Created September 21, 2017 09:34
List of URL Shorteners services.
adf.ly
t.co
goo.gl
adbooth.net
adfoc.us
bc.vc
bit.ly
j.gs
seomafia.net
adlock.in
@BenderV
BenderV / cut_the_noise.py
Created July 13, 2020 21:29
Reset twitter following list to the top 100
""""Warning
Dangerous script.
This will unfollow lots of people...
"""
import datetime
from collections import defaultdict
import os
import tweepy
@BenderV
BenderV / option-api.vue
Created December 2, 2020 09:23
option-api.vue
<template>
<div>{{ formattedUserLabel }}</div>
<div>{{ counter }}</div>
</template>
<script>
export default {
name: "MyComponent",
data() {
return {
@BenderV
BenderV / compositon-api.vue
Last active December 2, 2020 09:26
Example Composition Api
<template>
<div>{{ formattedUserLabel }}</div>
<div>{{ counter }}</div>
</template>
<script>
import { ref, computed } from "vue";
export default {
name: "MyComponent",