-
Stack İmplementation: http://play.golang.org/p/CPdSoLd-Bl
-
Defer statements: http://play.golang.org/p/5JJY5U-Hta
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
Paket listeleri okunuyor... Bitti | |
Bağımlılık ağacı inşa ediliyor. | |
Durum bilgisi okunuyor... Bitti | |
rng-tools zaten en yeni sürümde. | |
pass zaten en yeni sürümde. | |
Yükseltilen: 0, Yeni Kurulan: 0, Kaldırılacak: 0 ve Yükseltilmeyecek: 315. | |
gpg: /home/ecylmz/.gnupg: dizin oluşturuldu | |
gpg: yeni yapılandırma dosyası `/home/ecylmz/.gnupg/gpg.conf' oluşturuldu | |
gpg: UYARI: `/home/ecylmz/.gnupg/gpg.conf' deki seçenekler bu çalıştırma sırasında henüz etkin değil | |
gpg: `/home/ecylmz/.gnupg/secring.gpg' anahtar zinciri oluşturuldu |
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 'cgi' | |
require 'rss' | |
require 'nokogiri' | |
feed_url = "http://www.google.com/alerts/feeds/06667186376393157410/7085097342726270821" | |
response = RSS::Parser.parse(feed_url, false) | |
response.entries.each do |entry| | |
p Nokogiri::HTML(CGI.unescapeHTML(entry.title.to_s)).content # Başlık |
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
# encoding: utf-8 | |
# https://github.com/amalhotra/galerts | |
# gem'i kendin inşa et ve kur: | |
# cd /tmp && git clone https://github.com/amalhotra/galerts && cd galerts | |
# gem build galerts.gemspec | |
# sudo gem install galerts-0.0.1.gem --no-ri --no-rdoc | |
require 'galerts' | |
# http://www.google.com/alerts/manage |
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
# encoding: utf-8 | |
require 'gcal4ruby' | |
include GCal4Ruby | |
@service = Service.new | |
@username = '[email protected]' | |
@password = 'p4ssw0rd' | |
p 'Yetkilendir' |
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
package main | |
import ( | |
"fmt" | |
"sort" | |
"math/rand" | |
"time" | |
"strings" | |
) |
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
package main | |
import ( | |
"fmt" | |
"sync" | |
"time" | |
) | |
func main() { | |
m := new(sync.Mutex) |
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
package main | |
import ( | |
"fmt" | |
"time" | |
) | |
func main() { | |
c1 := make(chan string) | |
c2 := make(chan string) |
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 | |
cd /tmp | |
wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p290.tar.gz | |
tar xvzf ruby-1.9.2-p290.tar.gz | |
cd ruby-1.9.2-p290 | |
./configure --prefix=/usr\ | |
--program-suffix=1.9.2\ | |
--with-ruby-version=1.9.2\ | |
--disable-install-doc | |
make |
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 | |
# Öntanımlı kabuğu değiştir | |
useradd -Ds /bin/bash | |
for isim in `cat talebe.csv`; do | |
useradd -d /home/$isim -p `mkpasswd 123456` $isim | |
mkdir /home/$isim | |
chown -R $isim:$isim /home/$isim | |
done |