Skip to content

Instantly share code, notes, and snippets.

View phynet's full-sized avatar
🤘
I said yeah.

Sofia Swidarowicz phynet

🤘
I said yeah.
View GitHub Profile
@phynet
phynet / gist:10732884
Last active August 29, 2015 13:59
CellForRow
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *cellName = @"CellViewName";
CellChatEditNameGroup *aCellName = [tableView dequeueReusableCellWithIdentifier:cellName];
if (aCellName == nil) {
NSArray *views = [[NSBundle mainBundle] loadNibNamed:cellName owner:nil options:nil];
aCellName = (CellViewName *)[views objectAtIndex:0];
}
@phynet
phynet / designer.html
Last active August 29, 2015 14:05
designer
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../yt-video/yt-search-video.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icons/av-icons.html">
<link rel="import" href="../paper-fab/paper-fab.html">
@phynet
phynet / iPhone & iPad launch images sizes.md
Last active January 20, 2017 08:09
Launch images size (iPhone and iPad)

#iPhone & iPad launch images sizes

##Tablet (iPad) ###Non-Retina (1x) Portrait: 768 x 1024 Landscape: 1024 x 768

###Retina (2x) Portrait: 1536 x 2048 Landscape: 2048 x 1536

@phynet
phynet / git add anr delete tags.md
Last active November 8, 2016 13:34
Delete and Add Git Remote Tags

##Delete and Add Git Tags from Remote

Delete Tags:

git tag -d Android-V-0.26.1121
git push origin :refs/tags/Android-V-0.26.1121

Add Tags:

git tag -a Android-V-0.26.1121 6258767 -m "Android-V-0.26.1121"

@phynet
phynet / Copying apk file from device to computer.md
Last active April 11, 2017 14:55
Copying apk file from device to computer

Copying apk file from device to computer

Enter shell Android:

adb shell

List packages:

pm list packages

Get the complete path:

pm path com.myproject.something

Open iOS Simulator using command line

xcrun instruments -w "iPhone 6"

@phynet
phynet / Generate and Install IPA's file in device through Command Line.md
Last active December 22, 2022 16:15
Generate and Install IPA's file in device through Command Line

##Generate and Install IPA's file in device through Command Line

###Thanks to Mattt and phonegap's scripts

Take a note: all this steps can be automatized in a single script, if you know how to write it. (Bash or Ruby will be fine)

1.- Install your Provisioning Profile and Developer Certificate

2.- Install Shenzhen and ios-deploy: the firstone will generate the IPA file and the secondone will install it onto your device

@phynet
phynet / Kill all process that matches a given partial name.md
Last active November 8, 2016 13:31
Kill all process that matches a given partial name

##Kill all process that matches a given partial name

search all process runing that match a given name. For this example is "process"

ps -ef | grep "process"

Kill all the processes that match with "process" string

pkill -f process

@phynet
phynet / Show hidden files in Mac OSX.md
Last active April 11, 2017 14:55
Show hidden files in Mac OSX

Show hidden files in Mac OSX

Just open terminal and copy this command:

defaults write com.apple.finder AppleShowAllFiles YES

And restart Finder

@phynet
phynet / No JVM installation found.md
Last active November 8, 2016 13:30
Resolve issue "Android Studio: No JVM installation found"