Skip to content

Instantly share code, notes, and snippets.

View rubenCodeforges's full-sized avatar

Ruben M rubenCodeforges

  • Codeforges
  • Europe
View GitHub Profile
@rubenCodeforges
rubenCodeforges / BegginApp.ts
Last active November 12, 2018 15:19
Almost abstract Begging app
class BeggingApp {
private static readonly defaultMessage = '';
private static readonly reason = 'because its so awesome and i would like to take part at testing it';
private static readonly responseOnSuccess = 'Thank you dear very much for the key !';
private static serviceBag: Collection<Injectable[]>;
public static main(param: MainParams): void {
const beggar = new Beggar(BeggingApp.serviceBag.getItem(BeggingService));
<p ng-bind-html="dialogBoxOptions.BodyText"></p>
int kolichestvo_diodov = 6;
int nachalnij_nomer_pina = 3;
void setup() {
for(int tekushi_diod_w_cikle = 0; tekushi_diod_w_cikle < kolichestvo_diodov; tekushi_diod_w_cikle++){
pinMode(nachalnij_nomer_pina + tekushi_diod_w_cikle, OUTPUT);
}
}
void loop() {
int kolichestvo_diodov = 15;
int nachalnij_nomer_pina = 3;
int intensivnost = 10;
void setup() {
for(int tekushi_diod_w_cikle = 0; tekushi_diod_w_cikle < kolichestvo_diodov; tekushi_diod_w_cikle++){
pinMode(nachalnij_nomer_pina + tekushi_diod_w_cikle, OUTPUT);
}
}
[
{
"balance": "$3,946.45",
"picture": "http://placehold.it/32x32",
"age": 23,
"name": "Bird Ramsey",
"gender": "male",
"company": "NIMON",
"email": "birdramsey@nimon.com"
},
https://activetheory.net/
https://activetheory.net/
http://tbwachiatdayla.com/
http://tbwachiatdayla.com/
http://us.mullenlowe.com/
http://www.toolofna.com/
http://thisisdk.com/
http://thisisdk.com/
http://www.blitzagency.com/
https://ff0000.com
@App.factory 'MediaHelper', ['mytvConfig','$q','$upload', (mytvConfig,$q,$upload)->
helper =
settings:
maxFileSize: 1300
uploadVideo: (files)->
deferred = $q.defer()
files.forEach (file)=>
if file.size/1000000 < @settings.maxFileSize
@App.factory 'MediaHelper', ['mytvConfig','$q','$upload', (mytvConfig,$q,$upload)->
helper =
settings:
maxFileSize: 1300
uploadVideo: (files)->
deferred = $q.defer()
files.forEach (file)=>
if file.size/1000000 < @settings.maxFileSize
@App.factory 'MediaHelper', ['mytvConfig','$q','$upload', (mytvConfig,$q,$upload)->
helper =
uploadVideo: (files)->
deferred = $q.defer()
files.forEach (file)->
if file.size/1000000 < 1300
data =
api_password: mytvConfig.wistia.id
project_id: mytvConfig.me.remoteProjectId
<?php
namespace Codeforges\PlaygroundBundle\Controller;
use MyProject\Proxies\__CG__\OtherProject\Proxies\__CG__\stdClass;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Response;
class SoapController extends Controller{
function indexAction () {