Verify Permissions
diskutil verifyPermissions /
Repair Permissions
diskutil repairPermissions /
package com.x1unix.avi.kp; | |
import org.apache.commons.codec.digest.DigestUtils; | |
import java.io.IOException; | |
import java.text.DateFormat; | |
import java.text.SimpleDateFormat; | |
import java.util.Date; | |
import java.util.Random; | |
import okhttp3.HttpUrl; |
$('.b-feed-adblock').remove() && $('html').removeClass('m-blurry'); |
<?php | |
function grabPOST($url, $postDATA, $iOS = true) { | |
$ch = curl_init(); | |
$ua = 'Mozilla/5.0 (iPad; CPU OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A5376e Safari/8536.25'; | |
if ($iOS!==false) curl_setopt($ch, CURLOPT_USERAGENT, $ua); | |
curl_setopt($ch, CURLOPT_URL, $url); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); | |
curl_setopt($ch, CURLOPT_HEADER, FALSE); | |
curl_setopt($ch, CURLOPT_POST, TRUE); |
git rev-parse --abbrev-ref HEAD |
function logClass(target: any) { | |
// save a reference to the original constructor | |
var original = target; | |
// a utility function to generate instances of a class | |
function construct(constructor, args) { | |
var c : any = function () { | |
return constructor.apply(this, args); | |
} |
import com.x1unix.moonwalker; | |
import okhttp3.OkHttpClient; | |
class MyClass { | |
private static final String MOVIE_KINOPOISK_ID = "502838"; | |
public static void main() { | |
Moonwalker moonwalker = new Moonwalker('http://mysite.com/'); | |
moonwalker.getMovieByKinopoiskId(MOVIE_KINOPOISK_ID, | |
new Listener() { | |
@Override |
import { Component, OnInit } from '@angular/core'; | |
import { isNil } from 'lodash'; | |
import { ActivatedRoute, Router, NavigationEnd } from '@angular/router'; | |
import { Title } from '@angular/platform-browser'; | |
@Component({ | |
selector: 'l2-app', // <my-app></my-app> | |
templateUrl: './app.component.html', | |
styleUrls: ['./app.component.scss'], | |
}) |
curl -sL https://deb.nodesource.com/setup_6.x | sudo bash | |
sudo apt-get install nodejs |
package main | |
import "fmt" | |
const ( | |
O_NOTHING float32 = iota | |
O_ADD float32 = iota | |
O_SUBSTRACT float32 = iota | |
O_MULTIPLY float32 = iota | |
O_DIVIDE float32 = iota |