Skip to content

Instantly share code, notes, and snippets.

View timothyylim's full-sized avatar
🇳🇴
Loading...

Timothy Lim timothyylim

🇳🇴
Loading...
View GitHub Profile
Sub test()
Dim LastRow As Long
Dim ColumnName As String
Dim i As Integer
Dim Description As String
Description = "DE Acc. Desc."
HomeDR = FindColumnNumber("Home DR")
HomeCR = FindColumnNumber("Home CR")
@timothyylim
timothyylim / makefile1_c++
Last active August 29, 2015 14:26
General makefile for c++
Program: Program.cpp
g++ -Wall -g Program.cpp -o Program
bool test_move(const char *position, const int digit, char board[9][9]){
int row = convert_character_to_int((char) position[0]);
int col = position[1] - '0';
cout << board[row-1][col-1] << endl;
board[col-1][row-1] = '1';
cout << board[row-1][col-1] << endl;
return true;
}
cout << "===========================" << endl;
cout << "White checkmate test" << endl;
cout << "===========================" << endl;
cout << endl;
cb.submitMove("F2","F3");
cout << "* Valid" << endl;
cout << endl; cout << endl;
cb.submitMove("E7","E5");
package referenceplayer;
import battlecode.common.*;
import java.util.Random;
import java.util.ArrayList;
public class RobotPlayer {
static RobotController rc = null;
static int INFINITY = 2000;

https://h5p.org/library-development

H5P has very few requirements that needs to be fulfilled by H5P libraries. --> H5P has very few requirements that need to be fulfilled by H5P libraries.


https://h5p.org/roadmap

Attract a large worldwide community of skilled people who creates, uses and shares H5P-libraries with each other --> Attract a large worldwide community of skilled people who create, use and share H5P-libraries.

usermod -G sudo <username>
ssh into your vm
sudo apt-get install git, automake, libcurl4-openssl-dev, make, gcc
git clone https://github.com/wolf9466/hodlminer-wolf.git
./autogen.sh

#Uploading Interactive Videos to Wordpress

  1. Check that the Interactive Video Content Type is installed correctly
  • Follow the our guide explaining how to install content types from H5P.org
  • Note that only files ending in .h5p should be uploaded to your site
  1. Check the filesize limitations of your php settings
  • A sample php.ini that accomodates large video sizes looks like this:
; Maximum allowed size for uploaded files.
@timothyylim
timothyylim / ssh.md
Created June 8, 2016 13:53
Cloning into 'h5p-guess-the-answer'... FAILED Permission denied. Make sure ssh-agent is running. (ssh -T git@github.com should not ask for password/passphrase)
var _agent = secondary ;
var _seller = tertiary ;
var escrowContract = web3.eth.contract([{"constant":false,"inputs":[],"name":"release","outputs":[],"type":"function"},{"constant":false,"inputs":[],"name":"cancel","outputs":[],"type":"function"},{"inputs":[{"name":"_agent","type":"address"},{"name":"_seller","type":"address"}],"type":"constructor"}]);
var escrow = escrowContract.new(
_agent,
_seller,
{
from: web3.eth.accounts[0],
data: '6060604052604051604080610258833981016040528080519060200190919080519060200190919050505b33600060006101000a81548173ffffffffffffffffffffffffffffffffffffffff0219169083021790555081600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff0219169083021790555080600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908302179055505b505061019c806100bc6000396000f360606040526000357c01000000000000000000000000000000000000000000000000000000009004806386d1a69f14610044578063ea8a1af01461005357610042565b005b6100516004805050610062565b005b6100606004805050610