- option+shift+drag
- alt+click
- cmd+opt+arrow up/down
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Sublime Text 3 Install (last update: Monday 13 March 2017) | |
# | |
# No need to download this script, just run it on your terminal: | |
# | |
# curl -L git.io/sublimetext | sh | |
# Detect the architecture |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Install Quake 3: Arena on a mac | |
# Copyright (c) 2016 simonewebdesign | |
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Document</title> | |
</head> | |
<body> | |
<style> | |
.content { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('.fullscreenbutton').on('click', function () { | |
function toggleFullScreen() { | |
if (!document.fullscreenElement && // alternative standard method | |
!document.mozFullScreenElement && !document.webkitFullscreenElement) { // current working methods | |
if (document.documentElement.requestFullscreen) { | |
document.documentElement.requestFullscreen(); | |
} else if (document.documentElement.mozRequestFullScreen) { | |
document.documentElement.mozRequestFullScreen(); | |
} else if (document.documentElement.webkitRequestFullscreen) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<button id="btn">Click me!</button> | |
<script> | |
var btn = document.getElementById('btn'); | |
btn.onclick = function() { | |
// will be overwritten! | |
console.log('[onclick] foo'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'octokit' | |
client = Octokit::Client.new access_token: ENV['MY_GITHUB_PERSONAL_TOKEN'] | |
client.auto_paginate = true | |
repo = 'ORG_NAME/REPO_NAME' | |
issues = client.issues repo | |
puts "Repo #{repo} has #{issues.length} issues." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>audio test</title> | |
</head> | |
<body> | |
<!-- <audio controls="controls" autoplay> | |
Your browser does not support the <code>audio</code> element. | |
<source src="smb_gameover.wav" type="audio/wav"> |
- http://minimal.be/lab/Sprite3D/ Sprite3D wraps HTML elements with the necessary behaviours to easily control their 3D-position using a simple Javascript syntax.
- http://daneden.me/animate/ animate.css gives CSS3 animations with CSS classes.
- http://www.greensock.com/css3/ (commercial) GSAP makes it easy to use 3D Transforms via JavaScript.
- http://css3please.com/ Not a library, but can be useful
Even better is probably to have a script.sh file which looks like this (same thing but more readable):
#!/bin/bash
sed "s/FNAME/Simone/g;\
s/LNAME/Vittori/g;\
s/EMAIL/myemail@foobar.com/g;"
Just chmod +x script.sh
and then use it like:
NewerOlder