This file contains hidden or 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
| var data = "do shash'owania"; | |
| var crypto = require('crypto'); | |
| crypto.createHash('md5').update(data).digest("hex"); |
This file contains hidden or 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
| <html> | |
| <head> | |
| <style> | |
| body { | |
| background-color: #fff; | |
| font-family: Arial, sans-serif; | |
| } | |
| h1 { | |
| color: #000; | |
| font-size: 2em; |
This file contains hidden or 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
| <html> | |
| <head> | |
| <style> | |
| body { | |
| background-color: #fff; | |
| font-family: Arial, sans-serif; | |
| } | |
| h1 { | |
| color: #000; | |
| font-size: 2em; |
This file contains hidden or 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
| package pl.kitek.rvswipetodelete | |
| import android.content.Context | |
| import android.graphics.Canvas | |
| import android.graphics.Color | |
| import android.graphics.drawable.ColorDrawable | |
| import android.support.v4.content.ContextCompat | |
| import android.support.v7.widget.RecyclerView | |
| import android.support.v7.widget.helper.ItemTouchHelper |
This file contains hidden or 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
| /* | |
| * Copyright 2014 Julian Shen | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
This file contains hidden or 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
| package pl.garnek; | |
| import android.content.Context; | |
| import android.util.AttributeSet; | |
| import android.view.View; | |
| import android.view.ViewGroup; | |
| public class SquareView extends ViewGroup { | |
| public SquareView(Context context) { |
This file contains hidden or 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
| package your.package.name | |
| import android.content.Context | |
| import android.graphics.* | |
| import android.util.AttributeSet | |
| import android.view.View | |
| class TriangleShapeView @JvmOverloads constructor( | |
| context: Context, | |
| attrs: AttributeSet? = null, |
This file contains hidden or 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 android.content.Context | |
| import android.database.sqlite.SQLiteDatabase | |
| import android.database.sqlite.SQLiteOpenHelper | |
| class DbHelper(context: Context) : SQLiteOpenHelper(context, "some.db", null, 1) { | |
| override fun onUpgrade(db: SQLiteDatabase?, oldVersion: Int, newVersion: Int) { | |
| } |
This file contains hidden or 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
| <? | |
| $this->_helper->layout->disableLayout(); | |
| $this->_helper->viewRenderer->setNoRender(); |
This file contains hidden or 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
| <? | |
| // Proste sortowanie tablicy wielowymiarowej w obiekcie | |
| // (w tym przypadku sortujemy malejąco po wymiarze 'similar') | |
| class klasa { | |
| public sortuj() { | |
| usort($tablicaDoSortowania, array('klasa','compare')); | |
| } | |
| public function compare($a, $b) { | |
| if ($a['similar'] == $b['similar']) { |
NewerOlder