Skip to content

Instantly share code, notes, and snippets.

💭
Busy

Kirill Kotikov liamka

💭
Busy
Block or report user

Report or block liamka

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Config.go
package models
import (
"encoding/json"
"io/ioutil"
)
type Config struct {
Jobs []struct {
Employer string `json:"Employer"`
@liamka
liamka / Config.go
Last active Aug 29, 2015
JSON from func make it global
View Config.go
package models
import (
"encoding/json"
"io/ioutil"
)
type Config struct {
Keywords string `json:"keywords"`
Social []struct {
@liamka
liamka / Olympus
Created Dec 17, 2014
Olympus Has Fallen
View Olympus
<?php
namespace ShowMadness;
ini_set('memory_limit', '-1');
class ShowMadness
{
var $currency_names = array('dollar', 'euro');
var $MEGA_ARRAY = array();
public function __construct(){
@liamka
liamka / devide_large_numbers
Last active Aug 29, 2015
Devide large numbers
View devide_large_numbers
<?php
mysql_connect('localhost','root','') or die("Database error");
$num1 = "100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000";
$num2 = "99";
$r = mysql_query("Select @sum:=$num1 / $num2");
$sumR = mysql_fetch_row($r);
$sum = $sumR[0];
var_dump($sum);
@liamka
liamka / status.html
Created Sep 15, 2014
Ping every milesecond
View status.html
<script src="http://liamka.me/assets/js/jquery.min.js"></script>
<script type="text/javascript">
setInterval(function () {
$.ajax({url:'http://signaldnb.com/',
success: function(data){
$('#status').append("<div>Ok - " + new Date($.now()) + "</div>");
},
error: function(error){
$('#status').append("<div style='color: red;'>none - " + new Date($.now()) + "</div>");
}
View new_gist_file
<?php
$to = 'nobody@example.com';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: webmaster@example.com' . "\r\n" .
'Reply-To: webmaster@example.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);
?>
You can’t perform that action at this time.