I hereby claim:
- I am 3x14159265 on github.
- I am pichsenmeister (https://keybase.io/pichsenmeister) on keybase.
- I have a public key ASD9sW9rLkl1QhM7b9RfJBYypbNo3aOps5GO--xecf1KFwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
$token = '225242302:AAFJiXd3dSAbLAkN18MhRIGp9ZsIox5fRkM'; | |
function sendAPIRequest($token, $method, $payload) | |
{ | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL, "https://api.telegram.org/bot$token/$method"); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); | |
curl_setopt($ch, CURLOPT_POSTFIELDS, $payload); | |
$result = curl_exec($ch); | |
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE); |
(function() { | |
var body = document.getElementsByTagName('body')[0]; | |
var protocol = 'http'; | |
if(window.location.protocol == 'https') { | |
protocol = 'https'; | |
} | |
var url = protocol+'://localhost/oratio/js/widget/stmt_include.js'; | |
var s = document.createElement('script'); | |
s.setAttribute('type', 'text/javascript'); | |
s.setAttribute('src', url); |
load() { | |
this.http.get('http://localhost/angularTS/coffee.json').success( | |
(data, status) => this.coffee = <Coffee>data | |
); | |
} |
<span>{{ vm.member }}</span> |
$scope.vm = this; |
/// <reference path='../_all.ts' /> | |
module angularTs { | |
'use strict'; | |
export interface IFirstScope extends ng.IScope { | |
vm: FirstCtrl; | |
} | |
export class FirstCtrl { |
/// <reference path='../_all.ts' /> | |
module angularTs { | |
'use strict'; | |
export class Coffee { | |
constructor( | |
public milk: Milk, | |
public size: number, | |
public name: string){} |
/// <reference path='_all.ts' /> | |
module angularTs { | |
'use strict'; | |
var showcase = angular.module('showcase', []); | |
showcase.controller('firstCtrl', FirstCtrl.prototype.injection()); | |
showcase.controller('secCtrl', SecCtrl.prototype.injection()); |
/// <reference path='libs/angular.d.ts' /> | |
/// <reference path='models/MyModel.ts' /> | |
/// <reference path='controllers/FirstCtrl.ts' />+ | |
/// <reference path='controllers/SecCtrl.ts' /> | |
/// <reference path='app.ts' /> |