Skip to content

Instantly share code, notes, and snippets.

View earlwlkr's full-sized avatar

earlwlkr earlwlkr

  • Ho Chi Minh City, Vietnam
View GitHub Profile
import numpy as np
def func(a):
return a[0] * a[0] + a[1] * a[1] - 0.6
a = np.array([[1, 2, 3], [4, 5, 6]])
result = np.apply_along_axis(func, 0, a)
print(a)
print(result)
@earlwlkr
earlwlkr / 0_reuse_code.js
Created October 21, 2015 03:20
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1
wLicense, licenseList, bAcceptLicense, bCancel = nil
local Johnson = createPed(71, 251.44, 67.943, 1003.64)
setPedRotation(Johnson,2)
setElementDimension(Johnson, 1)
setElementInterior(Johnson, 6)
setElementData( Johnson, "talk", 1 )
setElementData( Johnson, "name", "Officer Johnson" )
local localPlayer = getLocalPlayer()
function toggleHelp( thePlayer, commandName )
if getElementData( thePlayer, "dbid" ) then
if getElementData( thePlayer, "help" ) then
-- hide the window
if commandName then
triggerClientEvent( thePlayer, "showHelp", thePlayer, false )
end
-- unfreeze and show the own player
setElementFrozen( thePlayer, false )

Nhóm 6:

  • Tại sao là kế hoạch 5 năm mà không phải là 7 năm hay 10 năm?

  • Sau kế hoạch 5 năm lần 1 thì nguyên nhân gì vẫn tiếp tục trong mục tiêu của Đại hội III dẫn đến suy thoái kinh tế của đất nước?

Nhóm 10:

  • Giải thích kinh tế nhóm A và nhóm B?
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Collect UID and user's name</title>
</head>
<body>
<form action="collectuid.php" method="get"> URL of the fanpage:
<input type="text" style="width: 400px;" name="web_url" placeholder="http://www.facebook.com/Vnexpress" required />
<input type="submit" value="Enter" />
<!DOCTYPE html>
<html lang="vi">
<head>
<meta charset="utf-8">
<title>Xem thông tin website</title>
</head>
<body>
<form action="viewer.php" method="get">
<input type="url" style="width: 400px;" name="web_url" placeholder="Đường dẫn website" required />
<input type="submit" value="Gửi" />
ALTER TABLE `accounts` ADD COLUMN `GunAmmo0` INT (11) NOT NULL,
ADD COLUMN `GunAmmo1` INT (11) NOT NULL,
ADD COLUMN `GunAmmo2` INT (11) NOT NULL,
ADD COLUMN `GunAmmo3` INT (11) NOT NULL,
ADD COLUMN `GunAmmo4` INT (11) NOT NULL,
ADD COLUMN `GunAmmo5` INT (11) NOT NULL;
ALTER TABLE `vehicles` ADD COLUMN `pvGunAmmo0` INT (11) NOT NULL,
ADD COLUMN `pvGunAmmo1` INT (11) NOT NULL,
ADD COLUMN `pvGunAmmo2` INT (11) NOT NULL;
<!DOCTYPE html>
<html lang="vi">
<head>
<meta charset="utf-8">
<title>Bài Tập HTML Tables</title>
</head>
<body>
<div align="center">
<img src="http://i.imgur.com/hD9DxVa.png"/>
</div>