Skip to content

Instantly share code, notes, and snippets.

@wilhelser
wilhelser / gist:bcfe4f1dea2c2b04d15a1b7cdf73e1ac
Last active April 2, 2024 21:31
Code Learning Resources
JAVASCRIPT
https://javascript.info/
https://skillcrush.com/blog/learn-javascript-for-free/
https://roadmap.sh/javascript
https://www.youtube.com/watch?v=FtaQSdrl7YA
https://learnjavascript.online/
https://www.gracehopper.com/blog/best-ways-to-learn-javascript-for-beginners
https://www.udemy.com/course/the-complete-javascript-course
#!/bin/sh
# Shell script to install your public key on a remote machine
# Takes the remote machine name as an argument.
# Obviously, the remote machine must accept password authentication,
# or one of the other keys in your ssh-agent, for this to work.
#
# http://www.devthought.com/2009/09/19/get-ssh-copy-id-in-mac-os-x/
#
<script>
var $buoop = {vs:{i:9,f:-4,o:-4,s:8,c:-4},api:4};
function $buo_f(){
var e = document.createElement("script");
e.src = "//browser-update.org/update.min.js";
document.body.appendChild(e);
};
try {document.addEventListener("DOMContentLoaded", $buo_f,false)}
catch(e){window.attachEvent("onload", $buo_f)}
</script>
@wilhelser
wilhelser / css-media-queries-cheat-sheet.css
Created June 21, 2017 15:37 — forked from bartholomej/css-media-queries-cheat-sheet.css
CSS Media Query Cheat Sheet (with Foundation)
/*------------------------------------------
Responsive Grid Media Queries - 1280, 1024, 768, 480
1280-1024 - desktop (default grid)
1024-768 - tablet landscape
768-480 - tablet
480-less - phone landscape & smaller
--------------------------------------------*/
@media all and (min-width: 1024px) and (max-width: 1280px) { }
@media all and (min-width: 768px) and (max-width: 1024px) { }

Sublime Text 2 - Useful Shortcuts

Tested in Mac OS X: super == command

Open/Goto


  • super+t: go to file
  • super+ctrl+p: go to project
  • super+r: go to methods
@wilhelser
wilhelser / available_issues.rb
Created January 17, 2014 21:11
Logic for available issues
def get_current_available
property = self.property
frequency = property.frequency
@issues = []
@upcoming_issues = UpcomingIssue.where(:active => true)
@upcoming_issues.each do |i|
@issues << i.issue_month
end
case frequency
when 1
@wilhelser
wilhelser / webdev-learning-resources
Last active January 2, 2016 04:39
Web Dev Learning Resources
# Git
https://try.github.io/levels/1/challenges/1
Start with this: http://codeacademy.com
# HTML/CSS
http://tutsplus.com/course/30-days-to-learn-html-and-css/
http://learn.shayhowe.com/html-css/
http://www.codeavengers.com/
http://www.dontfeartheinternet.com/
#config/initializers/remove-this-sf_bs3_inputs.rb
#Credit: https://github.com/rafaelfranca/simple_form-bootstrap/issues/26#issuecomment-22435894
inputs = %w[
CollectionSelectInput
DateTimeInput
FileInput
GroupedCollectionSelectInput
NumericInput
set :domain, "licensing.lichfield-001.vm.brightbox.net"
set :application, "licensing"
set :deploy_to, "/home/rails/#{application}"
set :user, "rails"
set :use_sudo, false
ssh_options[:forward_agent] = true
set :scm, :git
{
"use_simple_full_screen": false,
// calculates indentation automatically when pressing enter
"auto_indent": true,
// sets the colors used within the text area (default)
// see https://github.com/olivierlacan/monokaim to download
// the customized Monokai I use.
"color_scheme": "Packages/Color Scheme - Default/Monokaim.tmTheme",