Bookmarklet for easy access to edit mode on Codeacademy course exercises (where you have author / contributor rights).
Based on SCT viewer.
Drag editCA to the bookmarks bar, edit to replace the target with this code.
import os | |
from fnmatch import fnmatch | |
import sublime, sublime_plugin | |
class DetectFileTypeCommand(sublime_plugin.EventListener): | |
""" | |
Detects current file type if the file's extension isn't | |
Modified for Ruby on Rails and Sublime Text 2 Original pastie | |
here: http://pastie.org/private/kz8gtts0cjcvkec0d4quqa |
#!/usr/bin/env ruby | |
# Put this file in the root of your Rails project, | |
# then run it to output the SQL needed to change all | |
# your tables and columns to the same character set | |
# and collation. | |
# | |
# > ruby character_set_and_collation.rb | |
DATABASE = '' |
## | |
# OSX defaults, based on http://mths.be/osx | |
# | |
# Ask for the administrator password upfront | |
sudo -v | |
# Set computer name (as done via System Preferences → Sharing) | |
sudo scutil --set ComputerName "air" | |
sudo scutil --set HostName "air" |
Bookmarklet for easy access to edit mode on Codeacademy course exercises (where you have author / contributor rights).
Based on SCT viewer.
Drag editCA to the bookmarks bar, edit to replace the target with this code.
javascript:for(var a=document.querySelectorAll("*"),i=0,e;e=a[i];i++)"fixed"==getComputedStyle(e).position&&(e.style.position="static") |
Here we use Homebrew to install rbenv:
brew update; and brew install rbenv ruby-build
~/.rbenv/shims
to your PATHrbenv install 2.2.2
and rbenv rehash
rbenv global 2.2.2
Now you can run gem install bundler
and bundle install
within your Ruby project.
const puts = (...anything) => { | |
fetch("/api/puts", { | |
method: 'POST', | |
headers: { | |
'Content-Type': 'application/json' | |
}, | |
body: JSON.stringify({content: anything}) | |
}) | |
} |
Here is a short guide that will help you setup your environment to create signed commits
or signed tags
with Git locally. This has been extensively tested on Windows with Git and the Github Desktop application: I use it every day for my professional development projects.
I you face any issue, feel free to leave a comment below.