This file contains hidden or 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
class Openssh < Formula | |
desc "OpenBSD freely-licensed SSH connectivity tools" | |
homepage "http://www.openssh.com/" | |
url "http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-7.1p1.tar.gz" | |
mirror "https://www.mirrorservice.org/pub/OpenBSD/OpenSSH/portable/openssh-7.1p1.tar.gz" | |
version "7.1p1" | |
sha256 "fc0a6d2d1d063d5c66dffd952493d0cda256cad204f681de0f84ef85b2ad8428" | |
bottle do | |
sha256 "503dc3735753255450915a7c7f6774546e67525df0e574d1418938e415663a25" => :yosemite |
This file contains hidden or 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
{% set inColumn = false %} | |
{% for block in entry.body %} | |
{% switch block.type %} | |
{% case 'columnBlock' %} | |
{% if inColumn %} | |
</div> | |
{% else %} | |
{% set inColumn = true %} | |
<div class="lucky grid"> | |
{% endif %} |
This file contains hidden or 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
{% macro asyncCSS(urls) %} | |
{% for url in urls %}asyncCSS({{ url }});{% endfor %} | |
function asyncCSS(url) { | |
var wf = document.createElement('link'); | |
wf.href = ('https:' == document.location.protocol ? 'https:' : 'http:') + url; | |
wf.rel = 'stylesheet'; | |
wf.media = 'only x'; | |
var s = document.getElementsByTagName('style')[0]; | |
s.parentNode.insertBefore(wf, s); | |
} |
This file contains hidden or 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
.embed-container { | |
position: relative; | |
padding-bottom: 56.25%; | |
height: 0; | |
overflow: hidden; | |
max-width: 100%; | |
} | |
.embed-container iframe, | |
.embed-container object, | |
.embed-container embed { |
This file contains hidden or 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
<?php | |
namespace Craft; | |
class InspectorPlugin extends BasePlugin | |
{ | |
public function getName() | |
{ | |
return Craft::t('Inspector'); | |
} |
This file contains hidden or 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
javascript:(function(){var w = window.open();w.document.write('<title>Text Editor</title><link href=\'http://fonts.googleapis.com/css?family=Josefin+Sans:300\' rel=\'stylesheet\' type=\'text/css\'><body style="background: rgb(117,101,71); padding:1em;padding-bottom:7em"> <textarea id="txtBody" style="resize:none;font-family: \'Josefin Sans\', sans-serif; color: rgb(117,101,71); background: rgb(230,220,202); font-size: 2.5em; width: 100%; height: 100%; border: none; padding: 1em; outline: none; border-radius:8px; margin-bottom:10px" autofocus> </textarea> </body> <button onClick="SaveTextArea()" style="float:right; font-size:20px; border-radius:8px;background: rgb(230,220,202);margin-top:8px;border:none;padding:12px;padding-bottom:3px;text-transform:uppercase;cursor:pointer;color: rgb(117,101,71);font-family: \'Josefin Sans\', sans-serif;">SAVE this shit</button> <script language="javascript" type="text/javascript"> function SaveTextArea() { window.location = "data:application/octet-stream," + escape(txtBody.v |
This file contains hidden or 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
var preventCloseEvent = function() { | |
var appWindow = Ti.UI.getCurrentWindow(); | |
appWindow.addEventListener(Ti.CLOSE, function(event) { | |
appWindow.hide(); | |
event.preventDefault(); | |
return false; | |
}); | |
return appWindow; |
This file contains hidden or 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
""" | |
An easier flowchart? | |
""" | |
number = input("Insert a number between 1 and 10: ") | |
number = int(number) | |
if number > 0 and number < 11: | |
# This makes a list of numbers from zero to the number minus one | |
# Exmaple: range(10) = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] |