Skip to content

Instantly share code, notes, and snippets.

View morion4000's full-sized avatar

Ionut Moraru morion4000

View GitHub Profile
var search = Titanium.UI.createSearchBar({
barColor:'#000',
showCancel:true,
height:43,
top:0
});
var tableView = Titanium.UI.createTableView({
top:40,
data:{title:'Please perform a search'}
@morion4000
morion4000 / Usage.js
Created September 18, 2012 19:35
Titanium commonjs module for Youtube
var Youtube = require('Youtube');
var youtube = new Youtube();
var youtubeId = 'HQ1z0Zzqg5U';
youtube.h264videosWithYoutubeURL(youtubeId, function(e) {
videoPlayer.url = e.medium;
}, function(e) {
alert(JSON.stringify(e));
});
@morion4000
morion4000 / countdown.py
Created October 10, 2012 15:33
Python countdown to date script
from datetime import datetime, time
def dateDiffInSeconds(date1, date2):
timedelta = date2 - date1
return timedelta.days * 24 * 3600 + timedelta.seconds
def daysHoursMinutesSecondsFromSeconds(seconds):
minutes, seconds = divmod(seconds, 60)
hours, minutes = divmod(minutes, 60)
days, hours = divmod(hours, 24)
@morion4000
morion4000 / count_files_lines.sh
Created July 3, 2014 14:52
Count recursively the number of lines in files
find . -name '*.js' -not -path "./node_modules/*" | xargs wc -l
#!/bin/bash
cat > utilities-controller.json <<EOF
{
"kind": "ReplicationController",
"apiVersion": "v1",
"metadata": {
"name": "utilities-service",
"labels": {
"name": "utilities-service"
box: digitallyseamless/nodejs-bower-grunt
build:
steps:
- install-packages:
packages: ruby-full unzip
- script:
name: install compass gem
code: gem update --system && gem install compass
- npm-install
@morion4000
morion4000 / wercker.yml
Last active November 9, 2016 13:34
wercker.yml for the new Wercker stack with the Yeoman box
box: digitallyseamless/nodejs-bower-grunt:5
build:
steps:
- install-packages:
packages: ruby-full
- script:
name: install compass gem
code: gem update --system && gem install compass
- npm-install
0x40a981d92D6d9ad1532fAA8e0bdef7d390D9AaC4
In the world of post-modernism, it is no longer clear that any one identity is ‘real’.
d8a757852d3c255b4364dee86f91eb6914cf5d1b880d313168d670c8af9d63a9
05.05.2018 00:15:01connecting... to: https://webdollar-vps2.ddns.net:443
05.05.2018 00:15:01connecting... to: https://robitza.ddns.net:8082
05.05.2018 00:15:03connecting... to: https://presa7.ro:80
05.05.2018 00:15:05connecting... to: https://webdollar-vps3.ddns.net:443
05.05.2018 00:15:05connecting... to: https://robitza.ddns.net:8081
05.05.2018 00:15:07connecting... to: https://webdollar-vps3.ddns.net:80
05.05.2018 00:15:07connecting... to: https://webdollar.ddns.net:8080
05.05.2018 00:15:11connecting... to: https://webdollar.ddns.net:8082
05.05.2018 00:15:11connecting... to: https://webdollar-vps1.ddns.net:80
05.05.2018 00:15:11connecting... to: https://hcern.ddns.net:8080