Skip to content

Instantly share code, notes, and snippets.

View harushimo's full-sized avatar

Hari Vedam harushimo

View GitHub Profile
#!/usr/bin/python3
hrs = input("Enter Hours:")
rate = input("Enter Rate:")
#Computing Overtime
if float(hrs) > 40:
hrs_difference = float(hrs) - 40
#print(hrs_difference)
overtime_pay = float(hrs_difference *(rate * 1.5))
print(overtime_pay)
origin https://github.com/harushimo/items-catalog.git (fetch)
origin https://github.com/harushimo/items-catalog.git (push)
preprod https://github.com/harushimo/fullstack-nanodegree-vm.git (fetch)
preprod https://github.com/harushimo/fullstack-nanodegree-vm.git (push)
{
"name": "polymer",
"version": "1.2.4",
"main": [
"polymer.html",
"polymer-mini.html",
"polymer-micro.html"
],
"license": "http://polymer.github.io/LICENSE.txt",
"ignore": [
=> "-lffi \n"
"gcc -o conftest -I/home/hari/.rvm/rubies/ruby-2.3.0/include/ruby-2.3.0/x86_64-linux -I/home/hari/.rvm/rubies/ruby-2.3.0/include/ruby-2.3.0/ruby/backward -I/home/hari/.rvm/rubies/ruby-2.3.0/include/ruby-2.3.0 -I. -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat -fPIC conftest.c -L. -L/home/hari/.rvm/rubies/ruby-2.3.0/lib -Wl,-R/home/hari/.rvm/rubies/ruby-2.3.0/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -Wl,-rpath,'/../lib' -Wl,-R'/../lib' -lruby -lpthread -lgmp -ldl -lcrypt -lm -lc"
/usr/bin/ld: cannot find -lgmp
collect2: error: ld returned 1 exit status
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main(int argc, char **argv)
4: {
@harushimo
harushimo / gist:4569037
Created January 18, 2013 22:03
pygame error
Skipping module _numericsurfarray for Python 3.2.3 (default, Oct 19 2012, 20:10:41)
[GCC 4.6.3] build.
Skipping module _numericsndarray for Python 3.2.3 (default, Oct 19 2012, 20:10:41)
[GCC 4.6.3] build.
running build
running build_py
running build_ext
building 'pygame.imageext' extension
gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -fPIC -D_REENTRANT -I/usr/X11R6/include -I/usr/include/SDL -I/usr/include/SDL -I/usr/include -I/usr/include -I/usr/include/python3.2mu -c src/imageext.c -o build/temp.linux-x86_64-3.2/src/imageext.o
In file included from src/imageext.c:47:0:
#This is using a regular expression to for small letter
while playAgain == '[Yy]es' or playAgain == '[Yy]'
displayIntro()
caveNumber = chooseCave()
checkCave(caveNumber)
print('Do you want to play again? (yes or no)')
playAgain = input()
@harushimo
harushimo / gist:4365970
Last active December 10, 2015 02:09
sample
#!/usr/local/bin/node
//Writing a configuration file
var config = {
"secrets" : {
"clientId" : "GOZ5E3WU0KPGHAU4NDRBDNT2F2BVAP0SGCMZJAQAI4EOOGMT",
"clientSecret": "HLZJO1OEXMPKXVDO23Z4EE3WBHS2ZSBUBU4UWALW2ZSFEFNR",
"redirectUrl": "https://localhost:3000/callback"
}
,"foursquare" : {
@harushimo
harushimo / gist:4230470
Created December 7, 2012 03:15
ruby code
require 'spec_helper'
describe "StaticPages" do
describe "Home page" do
it "should have the content 'Sample App'" do
# Run the generator again with the --webrat flag if you want to use webrat methods/matchers
visit '/static_pages/home'
page.should have_content('Sample App')
@harushimo
harushimo / gist:4229960
Created December 7, 2012 01:19
ruby rspec error
F
Failures:
1) StaticPages Home page should have the content 'Sample App'
Failure/Error: visit '/static_pages/home'
NoMethodError:
undefined method `visit' for #<RSpec::Core::ExampleGroup::Nested_1::Nested_1:0x007f84d4d6bef0>
# ./spec/requests/static_pages_spec.rb:9:in `block (3 levels) in <top (required)>'
@harushimo
harushimo / gist:4226277
Created December 6, 2012 17:23
bash script
#!/bin/bash
#Source and Target
source="$HOME/Downloads"
current_date=`date"+%m_%d_%y"`
target="$HOME/backup/${current_date}_back.tar.gz"
#Creating backup.tgz file to back up directory
tar -cvzf "$target" --exclude="$target" "$source"
Error Message