- 250g lentils
- 1 oinion
- 3 garlic cloves
- 1 fat tomatoe
- 3 tbsp. olive oil
- 1 tsp. of tomatoe paste
- 1.5 tsp. of poudered cumin
- 1 tsp. of poudered curcuma (or turmeric)
This file contains hidden or 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
| import timeit | |
| import random | |
| def if_elif_else_lookup(n): | |
| if n == 0: | |
| return "zero" | |
| elif n == 1: | |
| return "one" | |
| elif n == 2: | |
| return "two" |
This file contains hidden or 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
| void usleep(DWORD waitTime){ | |
| LARGE_INTEGER perfCnt, start, now; | |
| QueryPerformanceFrequency(&perfCnt); | |
| QueryPerformanceCounter(&start); | |
| do { | |
| QueryPerformanceCounter((LARGE_INTEGER*) &now); | |
| } while ((now.QuadPart - start.QuadPart) / float(perfCnt.QuadPart) * 1000 * 1000 < waitTime); | |
| } |
This file contains hidden or 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
| from cython.operator cimport dereference | |
| from posix.unistd cimport usleep | |
| from libc.stdio cimport printf | |
| from libc.stdint cimport intptr_t | |
| cdef extern from "pthread.h" nogil: | |
| ctypedef int pthread_t | |
| ctypedef struct pthread_attr_t: | |
| pass | |
| cdef int pthread_create(pthread_t *thread, pthread_attr_t *attr, void *(*start_routine) (void *), void *arg) |
This file contains hidden or 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
| # https://www.quantopian.com/posts/technical-analysis-indicators-without-talib-code | |
| import numpy | |
| import pandas as pd | |
| import math as m | |
| #Moving Average | |
| def MA(df, n): | |
| MA = pd.Series(pd.rolling_mean(df['Close'], n), name = 'MA_' + str(n)) | |
| df = df.join(MA) |
how to leverage oracle's temping offers
The limits of the free tier say that you can create up to 4 instances.
- x2 x86 instances (2core/1g)
- x2 ampere instances (with 4core/24g spread between them)
- 200GB total boot volume space across all intances (minimum of 50G per instance)
This file contains hidden or 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
| #!C:\Python27\python.exe | |
| # The MIT License (MIT) | |
| # | |
| # Copyright © 2014-2016 Santoso Wijaya <[email protected]> | |
| # | |
| # Permission is hereby granted, free of charge, to any person | |
| # obtaining a copy of this software and associated documentation files | |
| # (the "Software"), to deal in the Software without restriction, | |
| # including without limitation the rights to use, copy, modify, merge, | |
| # publish, distribute, sub-license, and/or sell copies of the Software, |
In some cases, only these lines will work
for product in IntelliJIdea WebStorm DataGrip PhpStorm CLion PyCharm GoLand RubyMine; do
rm -rf ~/.config/$product*/eval 2> /dev/null
rm -rf ~/.config/JetBrains/$product*/eval 2> /dev/null
doneBut if not, try these
This file contains hidden or 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
| REM Delete eval folder with licence key and options.xml which contains a reference to it | |
| for %%I in ("WebStorm", "IntelliJ", "CLion", "Rider", "GoLand", "PhpStorm", "Resharper", "PyCharm") do ( | |
| for /d %%a in ("%USERPROFILE%\.%%I*") do ( | |
| rd /s /q "%%a/config/eval" | |
| del /q "%%a\config\options\other.xml" | |
| ) | |
| ) | |
| REM Delete registry key and jetbrains folder (not sure if needet but however) | |
| rmdir /s /q "%APPDATA%\JetBrains" |
This file contains hidden or 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
| :: This bat file can be used to renew Resharper C# and Resharper C++ every time it runs out | |
| :: It most likely works for all Jetbrains tools, however, I did not test this. | |
| :: I was not able to find the original author for the reg key and the folders that needs to be deleted so if that is you feel free to reach out for credit | |
| @echo off | |
| setlocal enableDelayedExpansion | |
| :confirm | |
| echo Did you stop all Jetbrains services? | |
| echo Jetbrains toolbox AND any other tool using it such as Rider, Visual Studio, ... |
NewerOlder