## Create a new config/initialisation file
Create a user-level initialisation file init.el
:
touch .emacs.d/init.el
import requests | |
import bs4 | |
import re | |
import json | |
from textblob import TextBlob | |
def getLyricSentiment(lyrics): | |
lyrics = re.sub('\s+',' ',lyrics) | |
return TextBlob(lyrics).sentiment.polarity |
#!/bin/bash | |
USER=${1:-sebble} | |
STARS=$(curl -sI https://api.github.com/users/$USER/starred?per_page=1|egrep '^Link'|egrep -o 'page=[0-9]+'|tail -1|cut -c6-) | |
PAGES=$((658/100+1)) | |
echo You have $STARS starred repositories. | |
echo |
defimpl Kipatest.Can, for: Kipatest.User do | |
use Kipatest.Web, :model | |
def can?(%User{} = subject, :owner, %User{} = user) do | |
user.id == subject.id | |
end | |
end |
No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.
Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
Update: I no longer work for the company and this challenge is no longer used, but I'll leave the gist here in case people want to practice.
Using Ruby on Rails we would like you to create a simple expert search tool. The application should fulfill the requirements below. The source code must be placed in a public repo on GitHub. The application should be deployable on Heroku.