Skip to content

Instantly share code, notes, and snippets.

View abdulraoof's full-sized avatar

Abdul Raoof abdulraoof

View GitHub Profile
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<script src="http://d3js.org/d3.v3.js"></script>
<style>
@import url('https://fonts.googleapis.com/css?family=Open+Sans');
path.link {
fill: none;
stroke: #FFD380;
stroke-width: 1.6px;
=begin
This program determines whether the entered number is prime number or not.
=end
puts "Enter a number: "
num = gets.to_i
(2..(num-1)).each do |x|
rem = num % x
temp = Array.new
number = Array.new
i = 2
store = (2..10).to_a
until i > 10
(i..10).step(i) do |x|
temp.push(x)
end
store = store - temp
@abdulraoof
abdulraoof / gist:3883560
Created October 13, 2012 06:41 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt