Skip to content

Instantly share code, notes, and snippets.

View takedajs's full-sized avatar
🏠
Working from home

Shohei Takeda takedajs

🏠
Working from home
View GitHub Profile
@takedajs
takedajs / aws_lambda_hello.go
Created August 21, 2018 21:50
aws_lambda_hello.go
package main
import (
"context"
"fmt"
"github.com/aws/aws-lambda-go/lambda"
)
type MyEvent struct {
Name string `json:"name"`
version: 2
jobs:
deploy:
docker:
- image: circleci/php:7.1.8-browsers
steps:
- checkout
- run:
name: heroku deploy
command: |
@takedajs
takedajs / CodeIgniter_CircleCI_.circleci_config.yml
Last active June 24, 2018 08:42
CodeIgniter_CircleCI/.circleci/config.yml
version: 2
jobs:
deploy:
docker:
- image: circleci/php:7.1.8-browsers
steps:
- checkout
- run:
name: heroku deploy
command: |
<?php
class Test {
private $test1 = 1;
public function index()
{
echo $this->test1;
$test2 = 2;
<?php
class Test {
private $t = 1;
public function test()
{
echo $this->t;
$test = 2;
<?php
$test = 1;
if ($test == 1) {
echo $test;
} elseif ($test == 2) {
echo $test;
}
<?php
$test = 1;
if ($test == 1) {
echo $test;
} else if ($test == 2) {
echo $test;
}
var self = require('sdk/self');
var tabs = require("sdk/tabs");
var {Cc, Ci} = require("chrome");
var data = self.data;
var sss = Cc[ '@mozilla.org/content/style-sheet-service;1' ].getService( Ci.nsIStyleSheetService );
var ios = Cc[ '@mozilla.org/network/io-service;1' ].getService( Ci.nsIIOService );
var uri = ios.newURI(data.url('style.css'), null, null);
<?php
sleep(5);
echo $_GET['no'];
<?php
require 'vendor/autoload.php';
use GuzzleHttp\Client;
use GuzzleHttp\Event\CompleteEvent;
$client = new Client([
'base_url' => 'http://192.168.33.10',
]);