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
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Opentok Quick Start</title> | |
<script src="//static.opentok.com/v1.1/js/TB.min.js"></script> | |
<script> | |
// Initialize API key, session, and token... | |
// Think of a session as a room, and a token as the key to get in to the room | |
// Sessions and tokens are generated on your server and passed down to the client | |
var api_key = "YOUR API KEY"; |
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 sh | |
if [ $# == 0 ]; then | |
MYSQL_USERNAME='' | |
MYSQL_DATABASE='' | |
elif [ $# != 2 ]; then | |
echo "Usage: $0 <mysql username> <mysql database name>" 1>&2 | |
exit 1 | |
fi |
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
#!/bin/sh | |
case "$2,$3" in | |
merge,) | |
/usr/bin/perl -i.bak -ne 's/^# //, s/^#\t/\t/ if /^# Conflicts/ .. /^$/; print' "$1" ;; | |
*) ;; | |
esac |
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 python | |
class Point(object): | |
def __init__(self, x, y): | |
self.x = x | |
self.y = y | |
def __repr__(self): |
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
cd project/ | |
cp -i prepare-commit-msg .git/hooks/ | |
chmod +x .git/hooks/prepare-commit-msg |
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
# Copyright © 2017 Teddy Wing | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, |
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
Enquête hstore_accessor | |
La gem s'intègre avec `ActiveRecord` dans : | |
https://github.com/devmynd/hstore_accessor/blob/v1.1.0/lib/hstore_accessor.rb | |
Quand on appele `hstore_accessor` dans un modèle, la méthode dans | |
https://github.com/devmynd/hstore_accessor/blob/v1.1.0/lib/hstore_accessor/macro.rb | |
est executé. | |
Une module est créée qui définit des méthodes inclus dans le modèle : |
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
[package] | |
name = "parser-error-test" | |
version = "0.1.0" | |
[dependencies] | |
combine = "3.6.1" |
OlderNewer