gitflow | git |
---|---|
git flow init |
git init |
git commit --allow-empty -m "Initial commit" |
|
git checkout -b develop master |
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 | |
from __future__ import print_function | |
import json | |
import logging | |
from urllib2 import Request, urlopen, URLError, HTTPError | |
from base64 import b64decode |
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 | |
const FILENAME = 'loadlog.ini'; | |
const FILEPATH = './' . FILENAME; | |
$foo = $_POST['foo']; | |
$bar = $_POST['bar']; | |
$content = 'foo=' . $foo; | |
$content .= '\n'; // \n are ascii code for breakline a.k.a enter | |
$content .= 'bar=' . $bar; |
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 link = "put your link here"; | |
function base64_decode(encoded) { | |
var genericString = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; | |
var varA, varB, varC, varD, varE, varF, varG, varH, varI = 0, | |
varK = ""; | |
do { | |
varD = genericString.indexOf((encoded.charAt((varI++))); | |
varE = genericString.indexOf((encoded.charAt((varI++))); | |
varF = genericString.indexOf((encoded.charAt((varI++))); |
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 | |
// if form submitted | |
if (!empty($_POST)) : | |
// get all posted variable | |
$lamp = $_POST['lamp']; | |
$blower = $_POST['blower']; | |
// TODO : generate content based on variables | |
$content = '.txt file content editted'; |
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 if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
class CRUD_Model extends CI_Model { | |
protected $_table = NULL; | |
protected $_primary_key = 'seq_id'; | |
protected $_timestamps = FALSE; | |
protected $_created_on_field = 't_created_on'; | |
protected $_updated_on_field = 't_updated_on'; | |
protected $_timestamps_format = 'Y-m-d H:i:s'; |
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 | |
use Illuminate\Database\Migrations\Migration; | |
use Illuminate\Database\Schema\Blueprint; | |
class CreateProductsTable extends Migration { | |
/** | |
* Run the migrations. | |
* |
NewerOlder