This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void validateApp() | |
{ | |
try { | |
HttpPost request = new HttpPost("http://binho.net/p/teste.json"); | |
List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(6); | |
nameValuePairs.add(new BasicNameValuePair("user_email", "positivo@positivo.com.br")); | |
nameValuePairs.add(new BasicNameValuePair("user_password", "123456")); | |
nameValuePairs.add(new BasicNameValuePair("application_id", APP_ID)); | |
nameValuePairs.add(new BasicNameValuePair("device_id", obtemID())); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost cabine.la:80> | |
ServerAdmin contato@cabine.la | |
ServerName www.cabine.la | |
ServerAlias cabine.la | |
DocumentRoot /var/www/cabine | |
ProxyRequests off | |
<Proxy *> | |
Order deny,allow | |
Allow from all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSLog(@"[%s:%s:%d]", __FUNCTION__, __FILE__, __LINE__); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# generate key example | |
keytool -genkey -v -keystore maxwal.keystore -alias maxwal -keyalg RSA -keysize 2048 -validity 10000 -dname "CN=Maxwal, OU=Maxwal, S=São Paulo, C=BR" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- CSS --> | |
<style type="text/css"> | |
/* verifica se esta na vertical ou horizontal */ | |
#aviso-vertical { display: none; background:red; color:white; padding:20px; margin-top:100px; } | |
#aviso-vertical p { text-align:center; font-family: 'Trebuchet MS'; margin-left: -295px; font-size:22px; } | |
@media only screen and (orientation:portrait) { | |
#container { display:none; } | |
#aviso-vertical { display:block; } | |
} | |
@media only screen and (orientation:landscape) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
from datetime import timedelta | |
from babelfish import Language | |
from subliminal import download_best_subtitles, region, save_subtitles, scan_videos | |
import sys | |
import os | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import fnmatch | |
import sys | |
import os | |
num_strings_base = 0 | |
strings_on_base = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
DIRECTORY=$1 | |
echo "------------------------------" | |
echo "Passed Resources with xcassets folder argument is <$DIRECTORY>" | |
echo "------------------------------" | |
XC_ASSETS="$(find "$DIRECTORY" -name '*.xcassets')" | |
for xcasset in $XC_ASSETS; do | |
echo "-- 📦 XC Asset: $xcasset" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <XCTest/XCTest.h> | |
#import "Person.h" | |
#import "PersonViewModel.h" | |
@interface SimpleMVVMTests : XCTestCase | |
@property (nonatomic) NSString *salutation; | |
@property (nonatomic) NSString *fullName; | |
@property (nonatomic) NSDate *birthDate; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (NSArray *)fibonnaci:(NSNumber *)number { | |
NSMutableArray *array = [NSMutableArray new]; | |
for (int i = 0; i < [number intValue]; i++) { | |
if (i < 2) { | |
[array addObject:@(i)]; | |
} else { | |
int fib = ([array[i-1] intValue] + [array[i-2] intValue]); | |
[array addObject:@(fib)]; | |
} |