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
""" | |
do ... | |
pip install boto, turbomail | |
echo "just a test" > README.txt | |
... first | |
""" | |
import sys | |
from boto import connect_ses | |
FROM = "[email protected]" | |
TO = "[email protected]" |
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
import wx | |
from datetime import datetime | |
class Frame( wx.Frame): | |
def __init__(self): | |
wx.Frame.__init__(self,None,-1, "Probando Fecha , wx = {}".format(wx.__version__), size = ( 200,200)) | |
self.panel = wx.Panel(self, -1) | |
f = datetime.today() | |
hoy = wx.DateTimeFromDMY(f.day, f.month - 1, f.year) | |
fecha = wx.DatePickerCtrl( self.panel, -1, wx.DefaultDateTime, wx.DefaultPosition, [140,-1], wx.DP_DROPDOWN|wx.DP_ALLOWNONE ) |
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
<script type="text/coffeescript"> | |
$ -> | |
$("#cambiarinvitado").toggle() | |
$("#link_cambiar_invitado1").click (event) -> | |
event.preventDefault() | |
alert "foo1" | |
$("#cambiarinvitado").toggle() | |
$("#link_cambiar_invitado2").click (event) -> | |
event.preventDefault() | |
alert "foo2" |
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
import paramiko | |
k = paramiko.RSAKey.from_private_key_file("/Users/whatever/Downloads/mykey.pem") | |
c = paramiko.SSHClient() | |
c.set_missing_host_key_policy(paramiko.AutoAddPolicy()) | |
print "connecting" | |
c.connect( hostname = "www.acme.com", username = "ubuntu", pkey = k ) | |
print "connected" | |
commands = [ "/home/ubuntu/firstscript.sh", "/home/ubuntu/secondscript.sh" ] | |
for command in commands: | |
print "Executing {}".format( command ) |
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 to_string { | |
case { _ $tok } => { return [makeValue(unwrapSyntax(#{ $tok }), #{ $tok })]; } | |
} | |
macro <. { | |
case { _ $vari} => { | |
return #{ | |
this.get( to_string $vari ) | |
} | |
} | |
} |
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
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
isGlimmerComponent: true | |
}); |
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
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
isGlimmerComponent: true | |
}); |
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
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
isGlimmerComponent: true | |
}); |
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
import Ember from 'ember'; | |
let { computed, get, set } = Ember; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
value: '945', | |
style: 'color: black', | |
valor: computed('value', { | |
get(){ | |
let valor = `&#${get(this,'value')}` ; | |
return valor.htmlSafe();} |
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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |