Skip to content

Instantly share code, notes, and snippets.

View c-geek's full-sized avatar

Cédric Moreau c-geek

  • Art & Zerty
  • Rennes
View GitHub Profile
@jordy25519
jordy25519 / substrate-knownledge-dump.md
Last active September 21, 2022 03:34
Substrate/Plug/CENNZnet Knowledge Dump

Rust

cargo check

Sometimes errors from macro expansion are too opaque to debug. To see errors with the expanded macro set RUSTFLAGS like so:

RUSTFLAGS="-Z external-macro-backtrace" cargo +nightly [test|check]
# new version
@tdd
tdd / Learning and exploring ES6.md
Last active November 10, 2020 09:01
Good resources to learn, discover and explore ES6 in-depth

Learning

  • ES6 Katas - Small, byte-size exercises to discover most aspects of ES6 features by doing interactive, online exercises. Pretty awesome.
  • Learn ES2015 - A great part of Babel's website that takes you through examples of all supported ES6+ features
  • ES6-Features.org - Nice ES6 / ES5 comparisons of many ES6 language features
  • ES6 Features - A single-page tour of code examples for just about every ES6 feature, by Luke Hoban

Exploring in-depth

  • ES6 In Depth - A great series of articles on Mozilla Developer Network (MDN); also available in French through great translation efforts.
@tdd
tdd / angular-just-say-no.md
Last active November 18, 2022 20:47
Angular: Just Say No

Angular: Just say no

A collection of articles by AngularJS veterans, sometimes even core committers, that explain in detail what's wrong with Angular 1.x, how Angular 2 isn't the future, and why you should avoid the entire thing at all costs unless you want to spend the next few years in hell.

Reason for this: I'm getting tired of having to explain to everyone, chief of which all the indiscriminate Google Kool-Aid™ drinkers, why I have never believed in Angular, why I think it'll publicly fail pretty soon now (a couple years), and why it's a dead end IMO. This gist serves as a quick target I can point people to in order not to have to parrot / compile the core of the articles below everytime. Their compounded reading pretty much captures 99% of my view on the topic.

This page is accessible through http://bit.ly/angular-just-say-no and http://bit.ly/angularjustsayno, btw.

@ricardo-rossi
ricardo-rossi / ElasticSearch.sh
Last active December 1, 2023 04:55
Installing ElasticSearch on Ubuntu 14.04
#!/bin/bash
### USAGE
###
### ./ElasticSearch.sh 1.7 will install Elasticsearch 1.7
### ./ElasticSearch.sh will fail because no version was specified (exit code 1)
###
### CLI options Contributed by @janpieper
### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch
@lhuet
lhuet / followers.groovy
Created August 1, 2014 10:00
Get twitter follosers with twitter4j and groovy
@Grab(group = "org.twitter4j", module = "twitter4j-core", version = "4.0.2")
import twitter4j.*
Twitter twitter = new TwitterFactory().instance
def user = twitter.verifyCredentials()
println "Nb followers de ${user.name} (alias ${user.screenName}) : ${user.followersCount}"
long cursor = -1
def followers = twitter.getFollowersList(user.screenName, cursor, 200)
followers.each {println "${it.screenName} - ${it.name}"}
@canercandan
canercandan / ucoin-cli.md
Last active January 4, 2016 09:39 — forked from c-geek/ucoin-cli.md
added a table of contents
@c-geek
c-geek / ucoin-cli.md
Last active December 21, 2015 17:49
ucoin install

ucoin

Installation

Node.js

uCoin is powered by Node.js v0.10+, so you need it installed first. Here is an example for Ubuntu installation:

$ sudo apt-get update
@esperlu
esperlu / mysql2sqlite.sh
Created April 27, 2011 05:46
MySQL to Sqlite converter
#!/bin/sh
# Converts a mysqldump file into a Sqlite 3 compatible file. It also extracts the MySQL `KEY xxxxx` from the
# CREATE block and create them in separate commands _after_ all the INSERTs.
# Awk is choosen because it's fast and portable. You can use gawk, original awk or even the lightning fast mawk.
# The mysqldump file is traversed only once.
# Usage: $ ./mysql2sqlite mysqldump-opts db-name | sqlite3 database.sqlite
# Example: $ ./mysql2sqlite --no-data -u root -pMySecretPassWord myDbase | sqlite3 database.sqlite