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
[{"nom":"Laurent FABIUS","titre":"Ministre des Affaires étrangères et du Développement international","agenda":[{"date":"28 juillet","events":[{"time":"8h 28/7","content":" Bernard Cazeneuve : petit déjeuner de travail"},{"time":"11h 28/7","content":" Denis Kessler, président-directeur général de Scor (Paris)"},{"time":"17h 28/7","content":" Augustin de Romanet, président-directeur général d’Aéroports de Paris"}]},{"date":"29 juillet","events":[{"time":"8h30 29/7","content":" Entretien avec le président de la République"},{"time":"17h 29/7","content":" Entretien avec le Premier ministre"}]},{"date":"30 juillet","events":[{"time":"10h 30/7","content":" Conseil des ministres"},{"time":"11h30 30/7","content":" Michel Sapin"}]},{"date":"1 août","events":[{"time":"11h 1/8","content":"11h - Séminaire gouvernemental (Elysée)"}]}]},{"nom":"Ségolène ROYAL","titre":"Ministre de l'Écologie, du Développement durable et de l'Énergie","agenda":[]},{"nom":"Benoît HAMON","titre":"Ministre de l'Éducation nationale, de l'Ensei |
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
#!/usr/bin/env ruby | |
# encoding: utf-8 | |
require 'nokogiri' | |
require 'open-uri' | |
require 'json' | |
require 'yaml' | |
require 'date' | |
require_relative('months_conversion.rb') | |
# URL de présentation de l'ensemble du gouvernement |
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
sudo -s ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future gem install gem-name |
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
def initialize(*args) | |
@acl = YAML.load_file('acl.yaml') | |
end | |
def acl(action) | |
if m.user.authed? && (@acl.find_index{ |l| l[action] }) | |
end | |
end |
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
var inventory = b.getInventory(function(e,d){ | |
for(i=0;i<d.inventory_items.length;i++){ | |
console.log(d.inventory_items[i].inventory_item_data.item) } | |
}); |
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
// this is useful when you have to interact with contract instanciated on-the-go from another contract and can't use the deployed() method of truffle-contract | |
/** | |
* | |
* @ABIJSON : a JSON object representing the ABI file ( mostly generated with a solidity compiler or a deployment framework ( embark / truffle ) | |
* @nodeEntryPoint : node of the ETH chain to interact with | |
* @scDeployedAddress : Address of the contract to interact with | |
* @myMethod : Method of the smart contrac to call | |
* @arg1,arg2,argN : some arguments for the method. | |
* @signatureAddress : address originating the transaction | |
* @maxGas : gas that will be provided for the transaction. If can't be determined in advance, should be quite large, moreover if you plan to call a method that itself will deploy another contract |
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
{ | |
scrutins{ | |
dateScrutin | |
titre | |
demandeur{ | |
referenceLegislative | |
} | |
numero | |
sort{ |
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
export interface Welcome { | |
racine: Racine; | |
} | |
export interface Racine { | |
jaune: Jaune; | |
contenu: Contenu; | |
} | |
export interface Contenu { |
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
Account { | |
address: '<my0xedAddress>', | |
privateKey: | |
'<myPrivateKey>', | |
accounts: | |
TransactionSigner { | |
utils: | |
{ randomHex: [Function: randomHex], | |
jsonInterfaceMethodToString: [Function: jsonInterfaceMethodToString], |
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
# ========================== | |
# === General settings === | |
# ========================== | |
set -g default-terminal "screen-256color" | |
set -g history-limit 20000 | |
set -g buffer-limit 20 | |
set -sg escape-time 0 | |
set -g display-time 1500 | |
set -g remain-on-exit off |
OlderNewer