Skip to content

Instantly share code, notes, and snippets.

View Sumith1896's full-sized avatar
🎉

Sumith Kulal Sumith1896

🎉
View GitHub Profile
@Sumith1896
Sumith1896 / ideas
Last active August 30, 2015 09:43
RandomScriptIdeas
**Quora**<br/>
Notice when you are logged out, you can still browse all the pages re-pasting the link.<br/>
**Youtube**<br/>
Downloader, Ad-remover
**SPOJ-Github**<br/>
Push to GitHub and update SPOJ
**Website**<br/>
Push to GitHub and update site
**EasyFill**<br/>
Public machau
@Sumith1896
Sumith1896 / alert.js
Last active August 29, 2015 14:19
alert script
<script>
function doFunction(){
var socsecychecked = 0;
var nikhil = document.getElementByName("nikhil");
var amey = document.getElementByName("amey");
var shreyansh = document.getElementByName("shreyansh");
var srajan = document.getElementByName("srajan");
if(nikhil.checked){
socsecychecked++;
}
@Sumith1896
Sumith1896 / jekyll-serve-error-report
Created May 10, 2015 05:20
The error report of Jekyll. Possibly the Ruby is messed up.
```
sumith@sumith-Lenovo-Z50-70:~/github/Sumith1896.github.io$ jekyll serve
/usr/local/lib/ruby/gems/2.2.0/gems/execjs-2.5.2/lib/execjs/runtimes.rb:48:in `autodetect': Could not find a JavaScript runtime. See https://github.com/rails/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)
from /usr/local/lib/ruby/gems/2.2.0/gems/execjs-2.5.2/lib/execjs.rb:5:in `<module:ExecJS>'
from /usr/local/lib/ruby/gems/2.2.0/gems/execjs-2.5.2/lib/execjs.rb:4:in `<top (required)>'
from /usr/local/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /usr/local/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /usr/local/lib/ruby/gems/2.2.0/gems/coffee-script-2.4.1/lib/coffee_script.rb:1:in `<top (required)>'
from /usr/local/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /usr/local/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
@Sumith1896
Sumith1896 / test_add_poly() error
Created May 25, 2015 09:24
test_add_poly() error
[ 66%] Building CXX object src/tests/basic/CMakeFiles/test_polynomial.dir/test_polynomial.cpp.o
/home/sumith/github/csympy/src/tests/basic/test_polynomial.cpp: In function ‘void test_add_poly()’:
/home/sumith/github/csympy/src/tests/basic/test_polynomial.cpp:30:44: error: invalid initialization of reference of type ‘const SymEngine::Polynomial&’ from expression of type ‘SymEngine::RCP<const SymEngine::Polynomial>’
RCP<const Polynomial> c = add_poly(a, b);
^
In file included from /home/sumith/github/csympy/src/tests/basic/test_polynomial.cpp:4:0:
/home/sumith/github/csympy/src/polynomial.h:47:27: error: in passing argument 1 of ‘SymEngine::RCP<const SymEngine::Polynomial> SymEngine::add_poly(const SymEngine::Polynomial&, const SymEngine::Polynomial&)’
RCP<const Polynomial> add_poly(const Polynomial &a, const Polynomial &b);
^
make[2]: *** [src/tests/basic/CMakeFiles/test_polynomial.dir/test_polynomial.cpp.o] Error 1
@Sumith1896
Sumith1896 / hasherror
Created June 17, 2015 12:02
hash_error
[ 10%] Building CXX object src/CMakeFiles/symengine.dir/rings.cpp.o
In file included from /usr/local/include/piranha/symbol_set.hpp:35:0,
from /usr/local/include/piranha/math.hpp:46,
from /usr/local/include/piranha/array_key.hpp:36,
from /usr/local/include/piranha/piranha.hpp:135,
from /home/sumith/github/csympy/src/dict.h:13,
from /home/sumith/github/csympy/src/basic.h:26,
from /home/sumith/github/csympy/src/add.h:10,
from /home/sumith/github/csympy/src/rings.cpp:3:
/usr/local/include/piranha/type_traits.hpp: In instantiation of ‘const bool piranha::detail::is_function_object_impl<const std::hash<std::pair<long long unsigned int, piranha::mp_integer<> > >, long unsigned int, void>::tt<const std::pair<long long unsigned int, piranha::mp_integer<0> >&>::value’:
@Sumith1896
Sumith1896 / buckets
Created June 17, 2015 13:21
Piranha bucket
0,8131
1,2
2,2
4,2
6,2
9,2
12,2
16,2
20,2
25,2
@Sumith1896
Sumith1896 / cmake
Created June 26, 2015 18:45
cmake slowdown
sumith@sumith-Lenovo-Z50-70:~/github/csympy$ cmake -DWITH_MPFR=yes -DWITH_PIRANHA=yes .
-- The C compiler identification is GNU 4.8.2
-- The CXX compiler identification is GNU 4.8.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
@Sumith1896
Sumith1896 / clangcmake
Created June 28, 2015 18:27
clang cmake
sumith@sumith-Lenovo-Z50-70:~/github/csympy$ git clean -dfx
Removing clang/
sumith@sumith-Lenovo-Z50-70:~/github/csympy$ mkdir clang
sumith@sumith-Lenovo-Z50-70:~/github/csympy$ cd clang/
sumith@sumith-Lenovo-Z50-70:~/github/csympy/clang$ CXX=clang cmake ../
-- The C compiler identification is GNU 4.8.2
-- The CXX compiler identification is Clang 3.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
sumith@sumith-Lenovo-Z50-70:~/github/csympy$ git clean -dfx
sumith@sumith-Lenovo-Z50-70:~/github/csympy$ mkdir build-clang
sumith@sumith-Lenovo-Z50-70:~/github/csympy$ cd build-clang
sumith@sumith-Lenovo-Z50-70:~/github/csympy/build-clang$ CC=clang cmake ../
-- The C compiler identification is Clang 3.3.0
-- The CXX compiler identification is Clang 3.3.0
-- Check for working C compiler: /home/sumith/anaconda/bin/clang
-- Check for working C compiler: /home/sumith/anaconda/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
sumith@sumith-Lenovo-Z50-70:~/github/csympy$ git clean -dfx
Removing build-clang/
sumith@sumith-Lenovo-Z50-70:~/github/csympy$ mkdir build-clang
sumith@sumith-Lenovo-Z50-70:~/github/csympy$ cd build-clang/
sumith@sumith-Lenovo-Z50-70:~/github/csympy/build-clang$ CC=clang CXX=clang++ CXXFLAGS="-stdlib=libc++" cmake ../
-- The C compiler identification is Clang 3.3.0
-- The CXX compiler identification is Clang 3.3.0
-- Check for working C compiler: /home/sumith/anaconda/bin/clang
-- Check for working C compiler: /home/sumith/anaconda/bin/clang -- works
-- Detecting C compiler ABI info