Skip to content

Instantly share code, notes, and snippets.

View Tyrael's full-sized avatar

Ferenc Kovacs Tyrael

  • IBM Budapest Lab
  • Hilversum, The Netherlands, Europe, Earth, Solar System, Milky Way Galaxy
  • X @tyr43l
View GitHub Profile
@Tyrael
Tyrael / coinbase_price.gs
Created December 26, 2017 15:41
coinbase prices google apps script
/**
* Get the coinbase price.
*
* @param {string} currency_pair The currency pair (BTC-EUR, ETH-EUR or LTC-EUR)
* @param {string} price_type The price type (buy, sell or spot
* @return The current price on coinbase
* @customfunction
*/
function COINBASE_PRICE(currency_pair, price_type) {
//if (currency_pair == null) {
@Tyrael
Tyrael / active.md
Last active November 10, 2021 08:53
active github users from Hungary

Most active GitHub users from Hungary

The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at GitHub.com from Sun, 30 Aug 2015 10:08:52 GMT till Tue, 30 Aug 2016 10:08:52 GMT.

Only first 1000 GitHub users according to the count of followers are taken. This is because of limitations of GitHub search. Sorting algo in pseudocode:

githubUsers
 .filter(user => user.followers > 1)
Merging via command line
If you do not want to use the merge button or an automatic merge cannot be performed, you can perform a manual merge on the command line.
HTTPS
Git
Patch
https://github.com/marcosptf/web-gtk.git
Step 1: From your project repository, check out a new branch and test the changes.
@Tyrael
Tyrael / gist:b5660a3103cdb85ecfe8
Created November 20, 2015 17:32
php 7.0 contributors by commit number
[tyrael@Ferencs-MacBook-Pro php-src.git (PHP-7.0 ✗)]$ git shortlog --summary --oneline --no-merges PHP-5.6..PHP-7.0|sort -r
1878 Anatol Belski
1563 Dmitry Stogov
1144 Xinchen Hui
728 Nikita Popov
287 Bob Weinand
120 Andrea Faulds
97 Kalle Sommer Nielsen
97 Christoph M. Becker
93 Stanislav Malyshev
// realpath.c: display the absolute path to a file or directory.
// Adam Liss, August, 2007
// This program is provided "as-is" to the public domain, without express or
// implied warranty, for any non-profit use, provided this notice is maintained.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <libgen.h>
#include <limits.h>
[tyrael@Ferencs-MacBook-Pro en ]$ svn diff
Index: reference/strings/functions/ucwords.xml
===================================================================
--- reference/strings/functions/ucwords.xml (revision 337116)
+++ reference/strings/functions/ucwords.xml (working copy)
@@ -11,6 +11,9 @@
<methodsynopsis>
<type>string</type><methodname>ucwords</methodname>
<methodparam><type>string</type><parameter>str</parameter></methodparam>
+ <methodparam choice="opt">
class Bison1 < Formula
homepage "https://www.gnu.org/software/bison/"
url "http://ftpmirror.gnu.org/bison/bison-1.28.tar.gz"
mirror "https://ftp.gnu.org/gnu/bison/bison-1.28.tar.gz"
sha256 "c5d3e4858e17cb440cee9de7837f07277bcfb03507e9d2f0c506cab5efe36c3a"
keg_only :provided_by_osx, "Some formulae require a newer version of bison."
def install
system "./configure", "--disable-dependency-tracking",
@Tyrael
Tyrael / flex.rb
Last active August 29, 2015 14:24
class Flex < Formula
desc "Fast Lexical Analyzer, generates Scanners (tokenizers)"
homepage "http://flex.sourceforge.net"
url "https://ftp.gnu.org/old-gnu/gnu-0.2/src/flex-2.5.4.tar.gz"
sha1 "308b912c41f68504f1256e57218bde266fc07c57"
keg_only :provided_by_osx, "Some formulae require a newer version of flex."
depends_on "gettext"
Failed to open a session for the virtual machine php7dev_default_1422627443528_83176.
Implementation of the USB 2.0 controller not found!
Because the USB 2.0 controller state is part of the saved VM state, the VM cannot be started. To fix this problem, either install the 'Oracle VM VirtualBox Extension Pack' or disable USB 2.0 support in the VM settings (VERR_NOT_FOUND).
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c
index d15b85f..03d677a 100644
--- a/Zend/zend_compile.c
+++ b/Zend/zend_compile.c
@@ -549,6 +549,25 @@ void zend_do_free(znode *op1 TSRMLS_DC) /* {{{ */
}
/* }}} */
+uint32_t zend_add_class_modifier(uint32_t flags, uint32_t new_flag) /* {{{ */
+{