Skip to content

Instantly share code, notes, and snippets.

View harushimo's full-sized avatar

Hari Vedam harushimo

View GitHub Profile
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: {
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.26.1/install.sh | bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 7728 100 7728 0 0 31286 0 --:--:-- --:--:-- --:--:-- 31414
=> Downloading nvm from git to '/home/hari/.nvm'
=> Cloning into '/home/hari/.nvm'...
remote: Counting objects: 3910, done.
remote: Compressing objects: 100% (23/23), done.
remote: Total 3910 (delta 9), reused 0 (delta 0), pack-reused 3887
Receiving objects: 100% (3910/3910), 970.64 KiB | 1.32 MiB/s, done.
git push origin master
fatal: 'origin' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
#!/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)
@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')