This file contains 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
# source: https://api.rousseau.movimento5stelle.it/graphql | |
# timestamp: Thu Aug 29 2019 13:23:08 GMT+0100 (Irish Standard Time) | |
enum AcceptanceStatus { | |
PENDING | |
APPROVED | |
REJECTED | |
} | |
type Badge implements Node { |
This file contains 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
(function(e) { | |
function t(t) { | |
for (var n, s, r = t[0], l = t[1], d = t[2], c = 0, m = []; c < r.length; c++) s = r[c], a[s] && m.push(a[s][0]), a[s] = 0; | |
for (n in l) Object.prototype.hasOwnProperty.call(l, n) && (e[n] = l[n]); | |
u && u(t); | |
while (m.length) m.shift()(); | |
return o.push.apply(o, d || []), i() | |
} | |
function i() { |
This file contains 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
<?php | |
return array( | |
'projectName' => 'Other', | |
'author' => 'Itsame' | |
); |
This file contains 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
<?php | |
return array( | |
'projectName' => 'Survey', | |
'author' => 'Nobody', | |
'baseUrl' => 'http://survey.local', | |
'mode' => 'development', | |
'cache' => true, | |
'mysql' => array( | |
'host' => 'localhost', |
This file contains 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
<?php | |
namespace Survey; | |
/** | |
* Helper to get configuration values. | |
*/ | |
class Config | |
{ | |
/** |
This file contains 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
<?php | |
$rows = array_map('str_getcsv', file('filename.csv')); | |
array_walk($rows, function(&$a) use ($rows) { | |
$a = array_combine($rows[0], $a); | |
}); | |
array_shift($rows); |