(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| require 'prime' | |
| ####### PEMBANGKITAN KUNCI OLEH ALICE | |
| # Pilih sembarang bilangan prima p (p dapat di-share di antara anggota kelompok) | |
| p = Prime.take(1000).last #bilangan prima ke-1000 | |
| # Pilih dua buah bilangan acak, g dan x, dengan syarat g < p dan 1 <= x <= p – 2 | |
| g, x = nil | |
| until g != x |
| #!/usr/bin/env ruby | |
| pwd = Dir.pwd | |
| puts pwd + "\n#{"="*pwd.length}" | |
| entries = Dir.glob(pwd+"/**/*", File::FNM_DOTMATCH) | |
| renamed = 0 | |
| entries.reverse.each do |file| | |
| unless File.basename(file) =~ /^(\.\.|\.)\z/ |
| <OpenSearchDescription> | |
| <ShortName>Google</ShortName> | |
| <Description>Google</Description> | |
| <Tags>google</Tags> | |
| <Image height="16" width="16" type="image/vnd.microsoft.icon">http://www.google.com/favicon.ico</Image> | |
| <Url type="text/html" template="http://www.google.com/search?q={searchTerms}"/> | |
| <Url type="application/x-suggestions+json" method="GET" template="https://www.google.com/complete/search?client=firefox&q={searchTerms}"/> | |
| </OpenSearchDescription> |
| let source = [ | |
| { | |
| name: "Account A" | |
| }, | |
| { | |
| name: "Account B" | |
| }, | |
| { | |
| name: "Account C" | |
| }, |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
| .SVGIcon { | |
| -webkit-font-smoothing: antialiased; | |
| -moz-osx-font-smoothing: grayscale; | |
| /* fix webkit/blink poor rendering issues */ | |
| transform: translate3d(0,0,0); | |
| /* it's better defined directly because of the cascade shit | |
| width: inherit; | |
| height: inherit; |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| [Unit] | |
| Description=Puma Rails Server | |
| After=network.target | |
| [Service] | |
| Type=simple | |
| User=deploy | |
| WorkingDirectory=/home/deploy/app/current | |
| ExecStart=/home/deploy/.rbenv/bin/rbenv exec bundle exec puma -C /home/deploy/app/shared/config/puma.rb | |
| ExecStop=/home/deploy/.rbenv/bin/rbenv exec bundle exec pumactl -S /home/deploy/app/shared/tmp/pids/puma.state stop |
###Sketch trial non stop
Open hosts files:
$ open /private/etc/hosts
Edit the file adding:
127.0.0.1 backend.bohemiancoding.com
127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com